Here is the code I'm currently using:
$('.table-striped tr').click( function() {
var link = $(this).find('a').attr('href');
if(link != 'undefined') {
window.location = link;
}
}).hover( function() {
$(this).toggleClass('hover');
});
It's working perfectly fine (the <a>
is hidden). Additionally, I have a nice CSS rule for td:hover
that highlights the entire row.
Now, what I'm looking to add is:
- The ability to right-click and "open in new tab/window"
- Middle Click Functionality
Do you happen to know how to achieve this?