jquery - How to find the last row in jqgrid -


currently i'm working on jqgrid, have find out last row , implement ctrl down functionality. not able last row.

needed 1 here.

thanks in advance

if grid id example list following expression should return last row:

$("#list").find(">tbody>tr.jqgrow:last"); 

or

$("#list").find(">tbody>tr.jqgrow").filter(":last"); 

one more, event better, way last row following

var rows = $("#list")[0].rows,     lastrowdom = rows[rows.length-1]; 

it uses rows collection of dom representation of <table>. value $(lastrowdom) same $("#list").find(">tbody>tr.jqgrow").filter(":last").


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -