DataTables logo DataTables

via Ad Packs
Change image in row detail?
  • TxWebTxWeb
    Posts: 9
    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
  • TxWebTxWeb
    Posts: 9
    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.
← All Discussions

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Support

Get useful and friendly help straight from the source.

In this Discussion