Change Button text in jQuery
home
Run
screen_rotation
fullscreen
cloud_download
navigate_next
<!DOCTYPE html> <html> <head> <title>jQuery Scrolltop Demo example</title> <script type="text/javascript" src="http://code.jquery.com/jquery-2.1.4.min.js"> </script> <script type="text/javascript" src="https://code.jquery.com/color/jquery.color-git.js"> </script> <script type="text/javascript"> function changeBtnText(){ $("#add").attr('value', 'Save Data'); } </script> </head> <body> <input type='button' value='Add' id='add'> <a href="javascript:void(0);" onclick="changeBtnText()" >Click to Change Button Text</a> </body> </html>
<!DOCTYPE html> <html> <head> <title>jQuery Scrolltop Demo example</title> <script type="text/javascript" src="http://code.jquery.com/jquery-2.1.4.min.js"> </script> <script type="text/javascript" src="https://code.jquery.com/color/jquery.color-git.js"> </script> <script type="text/javascript"> function changeBtnText(){ $("#add").attr('value', 'Save Data'); } </script> </head> <body> <input type='button' value='Add' id='add'> <a href="javascript:void(0);" onclick="changeBtnText()" >Click to Change Button Text</a> </body> </html>
Copyrights@tutorialsplane.com