two images in one td tag

two images in one td tag

deedhundeedhun Posts: 1Questions: 0Answers: 0
edited December 2012 in General
i have two images in one cell. How to add event listener for two images ?
i can add one using following code . But how to add two ?

$('#example tbody td img').live('click', function() {
var nTr = $(this).parents('tr')[0];
if (oTable.fnIsOpen(nTr)) {
/* This row is already open - close it */
this.src = "examples_support/details_open.png";
oTable.fnClose(nTr);
} else {
/* Open this row */
this.src = "examples_support/details_close.png";
oTable.fnOpen(nTr, fnFormatDetails(oTable, nTr), 'details');
}
});
This discussion has been closed.