Answer the question
In order to leave comments, you need to log in
JavaScript: how to add text to a tag with a tag inside?
Hello fellow toasters.
The customer's designer designed the code in the following way:
<li><i class="fa fa-map-marker"></i> Pierrelatte</li>
Answer the question
In order to leave comments, you need to log in
You can get the Text Node inside li and modify its content. Like this.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question