Tutorial Make Entire Div Clickable
$(".myBox").click(function(){ window.location=$(this).find("a").attr("href"); return false; }); Look...
https://iskablogs.blogspot.com/2014/03/tutorial-make-entire-div-clickable.html
$(".myBox").click(function(){
window.location=$(this).find("a").attr("href");
return false;
});
Looks for a link inside div with class of "myBox". Redirects to that links value when anywhere in div is clicked.
Reference HTML:
window.location=$(this).find("a").attr("href");
return false;
});
Looks for a link inside div with class of "myBox". Redirects to that links value when anywhere in div is clicked.
Reference HTML: