Make Entire Div Clickable


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $(".myBox").click(function(){
  2. window.location=$(this).find("a").attr("href");
  3. return false;
  4. });

URL: http://css-tricks.com/snippets/jquery/make-entire-div-clickable/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.