Posted By

stancox on 10/21/09


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

wirenaught
Priestd09


Disable all forms on a page


 / Published in: JavaScript
 

  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  

You need to login to post a comment.