2 Replies Latest reply on Jan 16, 2013 10:46 AM by Andy Barba

    How Do I clear a range of text fields by checking a checkbox?

    Andy Barba

      Hi there,


      Here is my scenario:

      I have an invoice form with a list of possible items that the user chooses by entering a quantity (text fields).


      ITEMS          QTY


      sunglasses      [sun_txt]

      bracelets         [brace_txt]

      pens               [pen_txt]

      t-shirts            [shirt_txt]


      [total_txt] (read-only)


      [X] No Items <--- (checkbox in question)




      I want the green text fields to clear to "0" when the checkbox is checked.

      How do I do this? I am a beginner to javascript so any help would be appreciated.