jquery - How to replace the text of an i tag? -
i have html shown
<button type="submit" id="savebtn" class="btn blue"> <i id="editorsave" class="icon-ok"></i>save</button>
i want replace text of save edit
this way tried .
$('#editorsave').text(''); $('#editorsave').text('edit');
http://jsfiddle.net/amr88nlo/
could please help me
you didn't set text "save" within <i>
element you're trying modify.
this fixed making <button>
this:
<button type="submit" id="savebtn" class="btn blue"> <i id="editorsave" class="icon-ok">save</i> </button>
jquery
No comments:
Post a Comment