$('tr').click(function() {
$("#showgrid").load('/Products/List/Items/');
});
Using this I am handling click event on the row of the table.
How can I handle only on the first column? that is, giving click action to only first column not on entire row?
thanks
You can handle the first column using
:first-childselector, like this:This selector returns the first
<td>in each<tr>.Alternatively, if you have a lot of rows, use
.delegate()for better performance (only one event handler), like this: