• Resolved oxyde31

    (@oxyde31)


    Hi,
    I use a table more than 120 rows, and some of them need to be clickable.
    for that purpose I have used the code js given by Tobias

    <script type="text/javascript">
    jQuery(document).ready(function($){
      $('.tablepress-id-1').on( 'click', 'tr', function() {
        var $a = $(this).find('a').last();
        if ( $a.length )
          window.location = $a.attr('href');
      } );
    });
    </script>

    The code works perfectly well, and rows containing a link are clickable. Is it possible to assign a particular color to all the rows with a link and turn the cursor into a pointer for these rows?
    The site is under construction I can give you adress and login data in private?…
    Thanks in advance

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Yes, this is possible, in principle, with very similar code. Basically, you would have to use JavaScript/jQuery to add a CSS class to the rows that have a link. (The jQuery parents() function could be helpful for that.)

    Regards,
    Tobias

    Thread Starter oxyde31

    (@oxyde31)

    Hi Tobias,

    Thank you for your reply, but if I know something about web design, I do not know anything about code and even less about javascript. Can you help me about that?

    Thanks in advance

    Best regards

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    unfortunately, that’s beyond what I can offer as free support here in the forums, due to my limited time and resources. Thanks for your understanding.

    You could maybe look into the premium features of TablePress, where I could then offer such direct coding help as part of the direct priority email support that comes with TablePress Pro and Max.

    Best wishes,
    Tobias

    Thread Starter oxyde31

    (@oxyde31)

    Thank you for your reply
    Have a nice day
    And I rate the plugin
    Oxyde31

    • This reply was modified 1 year, 5 months ago by oxyde31.
    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    sure, no problem! Thanks for your understanding!

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘make a row clickable’ is closed to new replies.