Title: make a row clickable
Last modified: September 28, 2023

---

# make a row clickable

 *  Resolved [oxyde31](https://wordpress.org/support/users/oxyde31/)
 * (@oxyde31)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/make-a-row-clickable/)
 * 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
 *     ```wp-block-code
       <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](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/make-a-row-clickable/#post-17086730)
 * 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](https://wordpress.org/support/users/oxyde31/)
 * (@oxyde31)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/make-a-row-clickable/#post-17087592)
 * 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](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/make-a-row-clickable/#post-17088252)
 * 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](https://tablepress.org/premium/)
   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](https://tablepress.org/pricing/).
 * Best wishes,
   Tobias
 *  Thread Starter [oxyde31](https://wordpress.org/support/users/oxyde31/)
 * (@oxyde31)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/make-a-row-clickable/#post-17088308)
 * Thank you for your reply
   Have a nice dayAnd I rate the pluginOxyde31
    -  This reply was modified 2 years, 8 months ago by [oxyde31](https://wordpress.org/support/users/oxyde31/).
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/make-a-row-clickable/#post-17089151)
 * 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.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/make-a-row-clickable/#post-17089151)
 * Status: resolved