Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #853556

    Hi,
    I am trying to make an entire table row clickable using the code from https://www.electrictoolbox.com/jquey-make-entire-table-row-clickable. I can get the row to select but not clickable. I am not sure if jQuery is being activated?
    I am using this code in the code block:
    $(document).ready(function() {
    $(‘#example tr’).click(function() {
    var href = $(this).find(“a”).attr(“href”);
    if(href) {
    window.location = href;
    }
    });

    });

    Can you please advise or would you recommend another way to do this.
    Thanks in advance,
    MikeP

    #853591

    I figured out code amended to:
    jQuery(document).ready(function($) {

    $(‘#example tr’).click(function() {
    var href = $(this).find(“a”).attr(“href”);
    if(href) {
    window.location = href;
    }
    });

    });

    #854177

    Hi,

    Great, glad you got it working and thanks for sharing your solution :-)

    Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.