Change image in row detail?

Change image in row detail?

TxWebTxWeb Posts: 9Questions: 0Answers: 0
edited July 2012 in General
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

Replies

  • TxWebTxWeb Posts: 9Questions: 0Answers: 0
    edited July 2012
    This is so easy to do in jQuery, is nobody manipulating elements in the details rows that are being added? That seems to be something of which a lot of folks are taking advantage. I just need to be able to toggle between an activation and deactivation image/link. Any help would be much much appreciated.
This discussion has been closed.