[jQuery] Re: insertAfter('.address')

2010-01-27 Thread Bas
On 26 jan, 16:28, Nathan Klatt wrote: > On Tue, Jan 26, 2010 at 9:27 AM, Nathan Klatt wrote: > > newDiv = createElement("div"); > > newDiv.load("http://mydomain.dev/search/view/Id/"; + $(this).attr("id") > > + ".html"); > > newDiv.insertAfter(".address"); > > Whoops, be sure to turn newDiv into

[jQuery] insertAfter('.address')

2010-01-26 Thread Bas
i'm using the following code to load some html after the fieldset: $(this).next().insertAfter('.address').load('http://mydomain.dev/ search/view/Id/' + $(this).attr('id') + '.html'); but i'll get the error: Node cannot be inserted at the specified point in the hierarchy" code: "3 [Break on this e