I have a project where you have several boxes, with an image, and a link. I would like that when I click on the .single-project class I would capture the href value, but I am 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>