[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('(bThis is a link/ b)') 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 =

[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. $('tr/') .append('tddiv id=me1/div/td') .append('tddiv id=me2/div/td') .appendTo('#mytable tbody');

[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 ricardob...@gmail.com 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.