Guest User

Untitled

a guest
Oct 22nd, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. for (i=0; i<arrChecks.length; i++)
  2. {
  3.     var attribute = arrChecks[i].getAttribute("xid")
  4.     if (attribute == elementName)
  5.     {
  6.         // if the current state is checked, unchecked and vice-versa
  7.         if (arrChecks[i].checked)
  8.         {
  9.             arrChecks[i].checked = false;
  10.         } else {
  11.             arrChecks[i].checked = true;
  12.         }
  13.  
  14.     } else {
  15.         arrChecks[i].checked = false;
  16.     }
  17. }
Add Comment
Please, Sign In to add comment