I have the following jquery that adds a onclick to every image within a table
$("#listtable tr td img").each(
function(intIndex) {
$(this).click(function() {
$(this).load("/Admin/ChangeIdeaStatus/" + $(this).attr('rel'));
});
}
);
This works ok, however I would like to modify it so that only an image in the first TD of every row in the table gets the onclick event.
I have tried the following, but it does not work
$("#listtable tr td:first img").each(