Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
153
rated 0 times [  154] [ 1]  / answers: 1 / hits: 16328  / 11 Years ago, fri, august 2, 2013, 12:00:00

How to change the text 'save' to 'edit' in this html code using jquery



<a id=personalSave href=# class=SaveText> 
<span class=FloatLeft>&lsaquo;</span>
save
<span class=FloatRight>&rsaquo;</span>
</a>


i tried changing the text(save between the spans ) using



$('#personalSave').innerText = edit;


but its not working..


More From » jquery

 Answers
36

This is what worked for me



$('#personalSave').text('edit');

[#76574] Thursday, August 1, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
shaina

Total Points: 161
Total Questions: 99
Total Answers: 108

Location: American Samoa
Member since Fri, Sep 24, 2021
3 Years ago
;