Change cursor to hand when mouse goes over a row in table

Zeeshan Rang picture Zeeshan Rang · Feb 15, 2012 · Viewed 433.4k times · Source

How do I change the cursor pointer to hand when my mouse goes over a <tr> in a <table>

<table class="sortable" border-style:>
  <tr>
    <th class="tname">Name</th><th class="tage">Age</th>
  </tr>
  <tr><td class="tname">Jennifer</td><td class="tage">24</td></tr>
  <tr><td class="tname">Kate</td><td class="tage">36</td></tr>
  <tr><td class="tname">David</td><td class="tage">25</td></tr>
  <tr><td class="tname">Mark</td><td class="tage">40</td></tr>
</table>

Answer

dangerChihuahua007 picture dangerChihuahua007 · Feb 15, 2012

You can do this with CSS actually.

.sortable tr {
    cursor: pointer;
}