Advertisement
Guest User

Untitled

a guest
Jul 14th, 2014
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. <html>
  2. <head>
  3. <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js"></script>
  4. </head>
  5. <body>
  6. <div>
  7. <input id="txtTest" value="TESTDISABLE" type="button" autocomplete="off"/>
  8. <input type="button" onclick="$('#txtTest').attr('disabled','disabled');" value="Set Disabled (jQuery)" />
  9. <input type="button" onclick="location.href = 'http://www.google.ca';" value="Sudo-submit" />
  10. <input type="button" onclick="$('#txtTest').removeAttr('disabled');" value="Remove Disabled" />
  11. </div>
  12. </body>
  13. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement