So... did you pull this off? -- Ariel Flesler http://flesler.blogspot.com/
On Aug 21, 5:53 pm, webrocker <[EMAIL PROTECTED]> wrote: > Hi Mike, > > On 21 Aug., 22:11, "Michael Geary" <[EMAIL PROTECTED]> wrote: > > > It isn't possible to insert tags, or partial tags, into the DOM. All you can > > insert into the DOM is DOM nodes, which by definition always follow the > > proper tree structure. > > '<ul></ul>' is a complete tag with begin and end, and $('<ul></ul>') results > > in a UL element which you can insert into the DOM. > > '</ul><ul>' is fragments of two different tags. There is no way to represent > > this as a DOM element, but the browser will do its best to turn it into one > > - and it will certainly not do what you expect. > > Thanks a million for this eye-opener! I should have known, but somehow > the DOM-Element vs. the CONTENT of an element (ie the difference > between '<aaa>' and 'aaa') completly went off my radar while I was > looking for a solution. :-) > > - Tom