0
Talk personal, all right? I’m trying to solve the following question, but I’m not getting it. Could someone give me a hand?
I need to get the html element where a determining text is. That is, I go through a certain html block, find the text I need, but I did not find a way to get the html element to perform a determination action on it, example insert a class or remove the same.
Someone knows how to do it?
<div class="bloco1">
<span>texto 1</span>
<span>texto 2</span>
<span>texto 3</span>
</div>
I would like to scroll through the block class element 1 to find text 1. In the span of this text I would like to insert or remove a class.
Grateful for the help!
Look I’ve been searching with Jquery, I hope I can help you: https://api.jquery.com/children/ Manipulating this span inside the Class bloco1 you can add or remove css in the <span>
– Fabio Branco da Silva