Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<html>
<head>
<script src="//cdnjs.cloudflare.com/ajax/libs/processing.js/1.4.1/processing-api.min.js"></script>
<script src="//code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="//fb.me/react-with-addons-0.11.0.js"></script>
</head>
<body>
<table id="accessList" border="1">
    <tbody>
      <tr>
        <th>Edition</th>
        <th>Company</th>
      </tr>
      <tr>
        <td>1</td>
        <td>Nordea Bank</td>
      </tr>
      <tr>
        <td>2</td>
        <td id="active">ABB</td>
      </tr>
      <tr>
        <td>3</td>
        <td>ABB</td>
      </tr>
  </tbody>
  </table>
</body>
</html>
 
$(document).ready(function() {
  // Make table rows clickable
  $(".table tr").on('click', function(event) {
    var target = $(event.target);
    if (target.is(":not(a)")) {
      var href = $(this).find("a").first().attr("href");
      if(href) {
        window.location.href = href;
      }
    }
  });
});
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers