0
I have a project where there are several boxes, with an image, and a link. I would like it when I click on the class . single-project captures the value of href, but I’m not getting it.
$('.single-project').on('click', function() {
window.location.href = ($(this).attr("href"));
});
<div class="single-project">
<img src="img/project/projeto01.jpg" alt="">
<div class="project-overly">
<a href="single-project.html">
<h3>Titulo</h3>
</a>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
</div>
</div>
It worked perfectly, thank you very much man
– Sérgio Machado