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

Enabling or not a validator control using javascript

P: n/a
Hi everybody,

I have a form where I have checkbox that triggers javascript code to make a
div appear. This is when the user selects "Other" in the list of choices
and we ask him to specify his choice using a textbox control. Now if the
user has selected the "Other" choice, the entry of the information in the
textbox is mandatory, so I want to be able to enable the
RequiredFieldValidator associated with the field. In the event when the
user clicks the Submit button, I can specify this on the server-side, but is
there a way to do the same thing on the client side?

Thanks for any help.

Eric.
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Eric Caron" <ec****@nospam.quebecaffaires.com> wrote in
news:uJ**************@tk2msftngp13.phx.gbl:
I can specify this on the server-side, but is
there a way to do the same thing on the client side?


I believe you'll need to use a Custom Validator and write your own custom
validation javascript.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.