Trying to access the Selected row of a GridView by using JQuery to find the row with the background-color attribute set to the SelectedRowStyle background color. That color is #FF6600. I’ve tried
var row = $("tr").find().css("background-color", "#FF6600");
But that just sets all the rows to orange.
var row = $("tr[background-color=#FF6600");
That returns empty
var row = $("tr").find().attr("background-color");
Returns undefined
Try the
.filtermethod.I haven’t tested it, the rgb part may need to be adjusted to account for spacing.
Edit:
or better yet, this takes into account uppercase vs lowercase