jQuery-rowClick

Expands the clickable area to an entire table row if that row contains a link.

View the Project on GitHub travishorn/jquery-rowClick

Description

Expands the clickable area to an entire table row if that row contains a link.

Open example.html for example usage.

Required HTML

<table>
  <tr>
    <td>Test Cell 1</td>
    <td><a href="somewhere.html">Test Cell 2</a></td>
    <td>Test Cell 3</td>
  </tr>
</table>

Required JavaScript

$('table').rowClick();

Links