jQuery - Add click event to Div and go to first link found
- by LuckyShot
Hi guys,
I think I've been too much time looking at this function and just got stuck trying to figure out the nice clean way to do it.
It's a jQuery function that adds a click event to any div with a click CSS class found in the page and when clicked it redirects the user to the first link found in the div.
function clickabledivs() {
…