I am using dynamic binding in jquery for the events in my page. In my page i have '+' image which expands the underneath values (table rows). the '+' is an image, when this is clicked i have to show the rows and change the image as '-'. I used to check the image wheather the '+' or '-' clicked using the following code.
var nImgPlusPos = obj.indexOf("plus.gif");
if (nImgPlusPos > 1)
{
$("#" + sImgID).show();
$("#" + sTrID).show();
$("#imgExpand" + sUniqueID).attr("src", "/Images/minus.gif");
} else {
$("#" + sImgID).hide();
}
These page is created as tab page using Ajax, so the event is bound during the Ajax call and the above code is working at first time and when the tab is relaunched the functionality-Expanding the rows below is not working.
Any kind of help is appreciated.