0
I have this hierarchy in HTML
<div class="footer">
<div class="send_show" style="height: 754px;"></div>
<div class="forms_sends">
<span class="sends">
<div class="icon-container">
<button class="send">ENVIAR</button>
</div>
</div>
</div>
and wish that when clicked on the class button .send
, a message is displayed in send_show
. Only that there are several hierarchies of these on the page, IE, should be taken to send_show
of the respective button.
I’m using jQuery to accomplish this.
Another way is to use the
.parents
to get into.forms_sends
and use the.prev('.send_show')
– fernandoandrade