Hi,
I used to use .live in the older JQuery version but need to migrate to .on() with the latest JQuery file. I have a gridview that used to expand a row to show a child row. When I rewritten the .live() to .on(), the child row will not appear. I click on the
'+' and nothing happens. Any help is appreciated.
//$("[id$='gvSubmitters'] tbody td img").live('click', function () {
$('body').on('click', 'gvSubmitters', function () {
// Get DOM element reference to parent row
var nTr = $(this).parents('tr')[0];
if (pTable.fnIsOpen(nTr)) {
/* This row is already open - close it */
//this.src = "http://i.imgur.com/SD7Dz.png";
//$(this).attr("src", "../Images/Plus.png");
this.src = ...
Go to the complete details ...