[jQuery] Re: injecting content

2009-01-28 Thread roxstyle
Thank you both, i am off to experiment. On Jan 28, 4:25 pm, Ricardo Tomasi wrote: > As long as you use proper mark-up they should behave alright. You > *can't* just stick a DIV between two rows, everything you do must > follow proper XHTML/HTML specs. Careful with the tbody. > > $('') >    .appe

[jQuery] Re: injecting content

2009-01-28 Thread Ricardo Tomasi
As long as you use proper mark-up they should behave alright. You *can't* just stick a DIV between two rows, everything you do must follow proper XHTML/HTML specs. Careful with the tbody. $('') .append('') .append('') .appendTo('#mytable tbody'); or $('#mytable tbody').append('') or i

[jQuery] Re: injecting content

2009-01-28 Thread William
In general, you can just use the jQuery manipulation APIs to inject arbitrary text and elements, like $('a').append('(This is a link)') Tables are a bit of a special case. In my experience, it does not work consistently, so it is better if you use the browser DOM APIs to do things like row = table