Javascript Validator help - how to require a field if checkbox is checked

Z

ziggs

I'm trying to find a reference to a validator code that will do the
following.

If checkbox called frmPrivate is checked (value=-1 is set for the value
in this case) then I want to require the user to fill in a text box
called name="CompanyName".
Can someone point me in the right direction?
TIA
 
J

Jeff Cochran

I'm trying to find a reference to a validator code that will do the
following.

If checkbox called frmPrivate is checked (value=-1 is set for the value
in this case) then I want to require the user to fill in a text box
called name="CompanyName".
Can someone point me in the right direction?

Using ASP? You'd have to check it after the form is submitted to the
server. For a Javascript solution, try the Javascript group or Google
"javascript form validation".

Jeff
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top