Change value on type=submit - Javascript jQuery

Javascript examples for jQuery:Form Submit

Description

Change value on type=submit

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript" src="https://code.jquery.com/jquery-compat-git.js"></script> 
      <script type="text/javascript">
    $(window).on('load', function() {
$(function() {//w  ww . ja va  2  s.  co  m
    $("input[type=submit]").val("New value");
});
    });

      </script> 
   </head> 
   <body> 
      <form> 
         <input type="submit" value="Submit button"> 
      </form>  
   </body>
</html>

Related Tutorials