I have the following code:
<li id="toto" class="jstree-leaf">
<ins class="jstree-icon2"> </ins>
<a class=""><ins class="jstree-icon2"> </ins>Story B</a>
</li>
I need to change the class of the <ins>
tags for a specific <li>
.
I need to access the <li>
id and then change the class of all <ins>
tags found inside it
I would appreciate it if someone could show me the right way to do that.
Thanks a lot..
You can add and remove classes for the ins
tags like this, using jQuery:
$('#toto ins').removeClass('oldClass').addClass('newClass');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With