try this: jQuery(".address").after(jQuery("<div id='container'></div>").load("./ index2.html"));
On Jan 26, 9:38 pm, Bas <basvdlustgr...@gmail.com> wrote: > 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 error] this.parentNode.insertBefore( elem, > this.nextSibling ); > > so how can i insert something after the class='address' and before the > span tag? > > <h5 class="head" id="dt_7788">Joepie</h5> > <div style="display: none;"> > <fieldset class="address"> > <ol> > <li>Meerweg 4</li> > <li>1921BR Akersloot</li> > <li>0251-317509</li> > </ol> > </fieldset> > <span>Tags: straatgolf</span> > </div>