Change image in row detail?
Change image in row detail?
Hi.
I have two sets of links/images that are displayed in a row detail div that need to be swapped in an event that I have firing on the page (the second set is set display:none on initial draw. When I run this code, it works to swap them out, but when I page through the datatable and come back to this row, the initial link/image is drawn. Here is the code:
$("#aLnk_"+my_id).hide();
$("#aImg_"+my_id).hide();
$("#deALnk_"+my_id).css("display", "inline");
$("#deAImg_"+my_id).css("display", "inline");
My question is, how do I capture the oTable row and make this change on the datatable row so the image change using the jQuery selector is preserved?
Thanks!
Web
I have two sets of links/images that are displayed in a row detail div that need to be swapped in an event that I have firing on the page (the second set is set display:none on initial draw. When I run this code, it works to swap them out, but when I page through the datatable and come back to this row, the initial link/image is drawn. Here is the code:
$("#aLnk_"+my_id).hide();
$("#aImg_"+my_id).hide();
$("#deALnk_"+my_id).css("display", "inline");
$("#deAImg_"+my_id).css("display", "inline");
My question is, how do I capture the oTable row and make this change on the datatable row so the image change using the jQuery selector is preserved?
Thanks!
Web
This discussion has been closed.
Replies