CiberTHuG
May 16th, 2001, 05:08 PM
I am not finding a way to do this, so it may not be possible, but...
I have two radio buttons and a series of text fields. If you radio A, it ignores the text fields, if you radio B, it uses the text fields. Ofcourse, "it" being the ASP that will parse the Request.Form() data.
My question is, is there a way that JavaScript can manually disable the text fields on radio A's click() event? Ofcourse, I would need to be able to enable them on radio B's event, but I imagine if one is possible, the other is, too. By disabling, I'm looking for some way to lock them, or grey them out, to keep the user from inputing anything into them.
I have two radio buttons and a series of text fields. If you radio A, it ignores the text fields, if you radio B, it uses the text fields. Ofcourse, "it" being the ASP that will parse the Request.Form() data.
My question is, is there a way that JavaScript can manually disable the text fields on radio A's click() event? Ofcourse, I would need to be able to enable them on radio B's event, but I imagine if one is possible, the other is, too. By disabling, I'm looking for some way to lock them, or grey them out, to keep the user from inputing anything into them.