Posted By

mariraj on 07/08/11


Tagged

check all


Versions (?)

Check all


 / Published in: Java
 

check all

  1. function checkAll(fmobj, checkAllId) {
  2.  
  3. fmobj = document.getElementById(fmobj);
  4. for (var i=0;i<fmobj.elements.length;i++) {
  5. var e = fmobj.elements[i];
  6. if ( (e.id != checkAllId) && (e.type=='checkbox') && (!e.disabled) ) {
  7. e.checked = document.getElementById(checkAllId).checked;
  8. }
  9. }
  10. }

Report this snippet  

You need to login to post a comment.