By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,933 Members | 1,243 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,933 IT Pros & Developers. It's quick & easy.

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

P: n/a
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

Jul 22 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On 3 Dec 2004 10:08:37 -0800, "ziggs" <aj***@comcast.net> wrote:
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
Jul 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.