Handling NaN

A

Alex Fung

Hi, I have 2 optional sections. Each optional sections contains a text box (A & B)where users entered a number (default value is 0). A third text box control (C) located outside of the 2 optional sections adds A and B. When the form is first loaded, the two optional sections are collapsed, and text box C displays NaN. Only when I expand both optional sections would text box C change to 0. Is there any way for me to display 0 when one or more of the optional sections are collapsed?

Thanks,
Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top