Sunday, February 15, 2015

Change Text of Button or Link in Jquery

In your script file or section, put the following code:

 //to change text of button  
 $('#btnId').attr('value', 'New button text);
  
 //to change text of link  
 $('a#btnId').text('New button text');  

No comments:

Post a Comment