You, Mr. Steve Davis, a newb to javascript? ;-)
Glad you came to be part of the jQuery group. Many of us started going that
direction after I got back from a Lasso conference last year.
One of those, I could have had a V8 moments. I just need to add the tbody
tags to my table. I can get lazy
i would make the first row a th then have it do a $(th).after(add
your TR here);
but im a total newbie to javascript and jquery
On Feb 15, 2:48 pm, Shelane [EMAIL PROTECTED] wrote:
I would like to add a row to a table. The first row is a header. So
I want to add it just under the header
$(tr#header).after(trtdnew content/td/tr);
if you use semantically correct table structure, you could just
prepend your new row to the top of the tbody, where it'd obviously be
after the header...
table
thead
tr
thHeader/th
/tr
/thead
tbody
tr
tdContent/td
/tr
/tbody
$(tbody).prepend(trtdnew
3 matches
Mail list logo