Using onclick inline javascript to a location can make a div act like an anchor.
<div onclick="location.href='url'">content</div>
jQuery:
$("div").click(function(){
window.location=$(this).find("a").attr("href"); return false;
});
Using onclick inline javascript to a location can make a div act like an anchor.
<div onclick="location.href='url'">content</div>
$("div").click(function(){
window.location=$(this).find("a").attr("href"); return false;
});
You must be logged in to post a comment.