I am using jQuery to cache a references to the selected row in a very large table (500+) records like this:
$selectedItem = $('.GridSelectedItem', $table);
This table is being generated by a GridView with it's SelectedRowStyle set, which gives my row the correct css class. I would like to instead use an ID in the mark up so I can locate the selected row like so:
$selectedItem = $('#GridSelectedItem');
Which is considerably faster. Anyone have a hint on how I can massage the GridView to produce this for me?