Please see my comment to the question.
Most likely, the HTML element to click is the table row,
<tr>
. For simplicity, let's assume you have only one table on the page. Then you need to get a wrapper of the element object using jQuery
selectors. This selector will return the whole set of all row elements:
allRows = $("tr");
Now you need to add some handler to all the rows:
allRows.click(function() {
});
Please see:
http://api.jquery.com/category/selectors[
^],
http://api.jquery.com/category/events/mouse-events[
^],
http://api.jquery.com/click[
^].
[EDIT]
Do do different processing for different elements (as it is indicated in the comment below, depending on
id
value), use a different form of the handler, with event object:
allRows.click(function(eventObject) {
});
—SA