My current structure is as follows:
<div class="button">
<a href="/" target="_blank" class="test">Photos</a>
</div>
How can I use JQuery to select .button and remove the target="_blank" attribute from the html?
I managed to reach this point by consulting the JQuery documentation, but being new, I am a bit lost.
$('.button').html("<a href="/" class="test">Photos</a>");