Change button text using jQuery.
<!DOCTYPE html> <html> <head> <script src="https://code.jquery.com/jquery-git.js"></script> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>Change button text using jQuery.</title> </head> <body> <input type='button' value='Cancel' id='button1'> </body> </html>
JavaScript Code:
//Uncomment the following code and see the changes. //$("#button1").prop('value', 'Save');
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
JavaScript Code: