I\'ve used JQuery to add a \"image\" button to a few rows in a table. I used the following code:
$(\"#tblResults tr:nth-child(1) td.ResultsHeader span.gridRC
Actually, if you try to use function "children" it will not be succesfull because it's possible to the table has a first child like 'th'. So you have to use function 'find' instead.
Wrong way:
var $row = $(this).closest('table').children('tr:first');
Correct way:
var $row = $(this).closest('table').find('tr:first');