1 Reply Latest reply on Aug 4, 2007 12:16 AM by Greg Dove

    checkbox selected status

    phil1943 Level 1
      hello, how do I reset a page full of checkbox components to "unchecked" status upon return to my checkbox page ?

      Is there a global style or some way to reset all at once, rather than individually ?

      thanks kindly for any help.
        • 1. Re: checkbox selected status
          Greg Dove Level 4
          I don't think there's any way to automatically 'reset' all check boxes - you need to have references to each of them.

          You could loop through everything on the timeline that holds the checkboxes and check if each thing is a checkbox instance...like this:

          for (var thing in this) {
          if (this[thing] instanceof CheckBox) this[thing].selected=false;

          If you're creating the checkboxes dynamically to start with then its also easy to push them into an array that just holds references to all your checkboxes. Then you could just use the array to loop through to do whatever you wanted to all of them.