Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
153
rated 0 times [  154] [ 1]  / answers: 1 / hits: 16332  / 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
shaina questions
Wed, Sep 30, 20, 00:00, 4 Years ago
Thu, Feb 6, 20, 00:00, 4 Years ago
Sun, Oct 7, 18, 00:00, 6 Years ago
Wed, Sep 20, 17, 00:00, 7 Years ago
Fri, Sep 15, 17, 00:00, 7 Years ago
;