Hi,
I am trying to make an entire table row clickable using the code from https://www.electrictoolbox.com/jquey-make-entire-table-row-clickable. I can get the row to select but not clickable. I am not sure if jQuery is being activated?
I am using this code in the code block:
$(document).ready(function() {
$(‘#example tr’).click(function() {
var href = $(this).find(“a”).attr(“href”);
if(href) {
window.location = href;
}
});
});
Can you please advise or would you recommend another way to do this.
Thanks in advance,
MikeP
I figured out code amended to:
jQuery(document).ready(function($) {
$(‘#example tr’).click(function() {
var href = $(this).find(“a”).attr(“href”);
if(href) {
window.location = href;
}
});
});