[jQuery] Re: prepend - but make second item instead of first

2008-02-16 Thread Shelane Enos
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

[jQuery] Re: prepend - but make second item instead of first

2008-02-15 Thread Steve Davis
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

[jQuery] Re: prepend - but make second item instead of first

2008-02-15 Thread ajpiano
$(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