SHARE
TWEET

Untitled

a guest Jul 14th, 2014 188 Never
  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>
RAW Paste Data
Top