I have 2 divs and when I click inside a link within the first div I need to get the value of the 2nd div, how do I do this?
HTML:
<div class="vei">
<span class="download"><a target="_blank" href='teste2.php'>download</a></span>
</div>
<div class="titulo"><a target="_blank" href='teste.php'>Teste</a></div>
JS (I tried this but it did not work):
$( ".download a" ).click(function(e){
$( ".download a" ).html($( ".titulo a" ).text(););
});
The "a" has to become "Test" and no longer "download"!