Disable all forms on a page


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



Copy this code and paste it in your HTML
  1. <script>
  2. for(i=0; i < document.forms.length; i++) {
  3. f = $(document.forms[i].id);
  4. if (f != null) {
  5. Form.disable(f);
  6. }
  7. }
  8. </script>

Report this snippet


Comments


You need to login to view comments.