Viewing 1 replies (of 1 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    No, adding a direct onclick attribute is not possible, and this would actually be bad JavaScript code. Instead, you should probably add event handlers using e.g. the jQuery library in your script, like

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

    Regards,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘adding onclick to table rows’ is closed to new replies.