Aronya1
08-16-2003, 09:44 PM
All hail the JS Kings!
Looking for help on something that should be fairly simple for someone who knows what they are doing, and I'm assuming this is a javascript question. Please correct me if I'm wrong.
I'm working on a form that will have various fields to be validated, but I also want to force the user to select a radio button before the Submit button will work (like agreeing to a software package's terms of use before it will install).
I can handle the form validation for the rest of the fields, but I'd like to have the radio button selection checked first. No point in validating the rest if they don't agree to the terms, right?
Also, I'd like to pop up a message window if they click Submit without selecting the proper radio button; "You must accept the terms of this agreement..." This part isn't crucial, but it would be nice to let the user know what they did wrong.
Anybody care to take a crack at this? Or point me to a good site for something like this?
Many thanks.
Aronya1
Looking for help on something that should be fairly simple for someone who knows what they are doing, and I'm assuming this is a javascript question. Please correct me if I'm wrong.
I'm working on a form that will have various fields to be validated, but I also want to force the user to select a radio button before the Submit button will work (like agreeing to a software package's terms of use before it will install).
I can handle the form validation for the rest of the fields, but I'd like to have the radio button selection checked first. No point in validating the rest if they don't agree to the terms, right?
Also, I'd like to pop up a message window if they click Submit without selecting the proper radio button; "You must accept the terms of this agreement..." This part isn't crucial, but it would be nice to let the user know what they did wrong.
Anybody care to take a crack at this? Or point me to a good site for something like this?
Many thanks.
Aronya1