[Proto-Scripty] Re: Last table row

2009-06-06 Thread RobG
On Jun 5, 8:15 pm, Jeztah webmas...@thecarmarketplace.com wrote: Morning... Very silly and easy question but my brain isn't working today How can i get the last row of a table (table id=foo) ... Tables have a rows collection that includes all rows in the table. Try: var rows =

[Proto-Scripty] Re: Last table row

2009-06-05 Thread Szymon Wilkołazki
Jeztah wrote: Morning... Very silly and easy question but my brain isn't working today How can i get the last row of a table (table id=foo) ... The row is inserted dynamically via an ajax request so its not on the page at load time!. $('foo').select('tr:last'); Unlike jQuery,

[Proto-Scripty] Re: Last table row

2009-06-05 Thread Alex McAuley
TY muchly Regards Alex - Original Message - From: Szymon Wilkołazki wilkola...@gmail.com To: prototype-scriptaculous@googlegroups.com Sent: Friday, June 05, 2009 11:33 AM Subject: [Proto-Scripty] Re: Last table row Jeztah wrote: Morning... Very silly and easy question but my