Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js"></script>
- </head>
- <body>
- <div>
- <input id="txtTest" value="TESTDISABLE" type="button" autocomplete="off"/>
- <input type="button" onclick="$('#txtTest').attr('disabled','disabled');" value="Set Disabled (jQuery)" />
- <input type="button" onclick="location.href = 'http://www.google.ca';" value="Sudo-submit" />
- <input type="button" onclick="$('#txtTest').removeAttr('disabled');" value="Remove Disabled" />
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement