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. > > $('<tr/>') > .append('<td><div id="me1"></div></td>') > .append('<td><div id="me2"></div></td>') > .appendTo('#mytable tbody'); > > or > > $('#mytable tbody').append('<tr><td><div id="me"></div></td></tr>') > > or if you really like chaining: > > $('<tr/>') > .append('<td />') > .children('td') > .append('<div>1</div>') > .append('<div>2</div>') > .end() > .appendTo('#mytable tbody'); > > On Jan 28, 8:30 pm, William <wmorr...@gmail.com> wrote: > > > In general, you can just use the jQuery manipulation APIs to inject > > arbitrary text and elements, like $('a').append('(<b>This 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 = table.insertRow(index) and cell = row.insertCell > > (index) > > > On Jan 28, 1:50 pm, roxstyle <resut...@gmail.com> wrote: > > > > are there any samples of injecting content? > > > i am familiar with hide/show of content inline, but don't grasp > > > "injecting" content. > > > if i have a table - can i inject a "div" between 2 rows? or do i need > > > to "inject" a new row?