Get de href from each element inside a div and use it
I got following html: <div class="tmb"> <p>First element</p> <a href="location-one.html">Click me</a> </div> <div class="tmb"> <p>Second element</p> <a href="location-two.html">Click me</a> </div> <div class="tmb"> <p>Third element</p> <a href="location-three.html">Click me</a> </div> What I want to do is to make the whole .tmb-div clickable with the url from it’s a-element child. What I tried so far is: (function($) {… Read More Get de href from each element inside a div and use it