As previously announced via banners and our newsletters, support is no longer available through this platform.

For easier navigation, you can still click on "Submit a Ticket" here, choose the appropriate category, and you'll be redirected to the correct support channel for your plugin.

You can still access your previous tickets and browse public tickets, but please note that responding to tickets is no longer possible.

Paid customers: Please log in to your store account for support.

Pre-purchase questions: Use the support widget in the bottom-right corner of our websites:
https://wpamelia.com
https://wpdatatables.com
https://wpreportbuilder.com

Okay
  Public Ticket #905809
jQuery code
Closed

Comments

  •   Lughen started the conversation
  • [deleted] replied

    Hi Laughen,
    Thank you for your purchase.

    You can try with this one. You have to replace #table_1 selector with your actual table selector.

    jQuery(window).load(function() {
        var clickRow = jQuery("#table_1").on('click', 'tbody tr', function() {
            var id = jQuery(this).find("td:first").text();
            alert(id);
        }).DataTable();
    });


  •  2
    Lughen replied

    Hi Milos,

    Thank you very much... It works perfectly. 

  •  2
    Lughen replied

    Hi Milos,

    One thing more, should it be always the id column? thanks.

  • [deleted] replied

    Hi Lughen,

    No you can select any column. You can call var id how do you want and td:first is first column. You can change it to select any other column. 

  •  2
    Lughen replied

    Hi Milos,

    Thank you very much. I got it.