8
Follows code:
<div class="file-caption-name">
<i class="glyphicon glyphicon-file kv-caption-icon"></i>
Alterar texto aqui
</div>
I’ve tried that way:
$('div.file-caption-name i').text('your new title');
The result looks like this:
<div class="file-caption-name">
<i class="glyphicon glyphicon-file kv-caption-icon">your new title</i>
Alterar texto aqui
</div>
You want to move the text from
div
to thei
?– Marcelo de Andrade
No, just change the text "Change text here" to "your new title".
– Matheus Miranda
Do not change the preference of your favorite answer, but note that mine does not touch anything in your HTML. Abs!
– Sam