I want to get the current $(figure img).attr('src');
, but the editor is saying that this is wrong and will not work. how to make it work?
HTML CODE:
<figure class="effect-oscar wowload fadeInUp" fotografo='Jessiane'>
<img src="http://iphotochannel.com.br/wp-content/uploads/2015/09/15_1.jpg"class='caraDoFotografo'width="450" height="297" alt="img01"/>
<figcaption>
<h2>Jessiane</h2>
<p>FotoGrafia É Vida <br>
2 FOTOS<BR>
<a href=''>Ver Fotos</a>
</figcaption>
</figure>
I have this JS
so it's wrong there in $(this img)
:
$('figure').on('click',function() {
ft = $(this).attr('fotografo');
link = $(this img).attr('src');
window.location.href='blend/portfolio.php?fotografo='+ft+'&link='+link;
});