Disable / Re-enable Inputs


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. //Disable:
  2. $("#submit-button").attr("disabled", true);
  3.  
  4. //Re-enable:
  5. $("#submit-button").removeAttr("disabled");

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.