Javascript examples for jQuery:Form Button
Disable a button using jquery
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0/jquery.js"></script> <script type="text/javascript"> window.onload=function(){/* w ww . j a va 2s . c o m*/ $("#foo").prop('disabled', true); } </script> </head> <body> <form> <input id="foo"> <input id="bar"> </form> </body> </html>