• Resolved gamattox

    (@gamattox)


    Hi Tobias,

    Does Tablepress support anything like an onclick event? The goal is to have my custom code execute upon clicking on a single row. The code that would execute would be different based on which row is clicked.

    Thanks,
    Gary

Viewing 1 replies (of 1 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Yes, that should not be a problem. TablePress created a normal HTML table, so that you can use jQuery code like

    jQuery(document).ready(function($) {
      $( '.tablepress-id-123' ).on( 'click', 'tr', function() {
        ... 
      }
    });
    

    to catch clicks on table rows in JavaScript.

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘Table Row onclick event?’ is closed to new replies.