This is a discussion on "Buttons based on Validation" within the JavaScript Forum section. This forum, and the thread "Buttons based on Validation are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Buttons based on Validation
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Buttons based on Validation
I have a number of buttons on my form which I would like to hide/reveal based on the results of the validation of the fields on the form.
Say one of the required fields on the form is date of birth. Now if the user skips this field or enters the information incorrectly which triggers a validation error I would like to not reveal a new set of buttons. The code that I have at the moment in JSP is:
As you can see there is no "if" statement based on a validation passing or failing. I was wondering if there was a way to stop the button reveal code running if the validation failed. Thanks Eddie |
|
|
|
|||
|
Hi there
Welcome to the Forums...! I would suggest you posting this thread in the Javascript section as you are more likely to receive a greater response in there. Sarah x |
|
|||
|
[moved]
|
![]() |
| Tags |
| buttons, based, validation |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help me test my PHP-based CMS | tox0tes | Webforumz Cafe | 5 | Sep 1st, 2007 03:02 |
| CSS based on browser ? | Accurax | Web Page Design | 3 | Jun 15th, 2007 13:33 |
| can't convert table-based to css-based layout | markus | Web Page Design | 21 | Apr 25th, 2007 22:50 |
| help with fwd/backwrd buttons affecting other buttons | typeofdoug | Flash & Multimedia Forum | 5 | Feb 4th, 2007 03:48 |
| Validation problem with multiple submit buttons | celia05es | JavaScript Forum | 2 | Sep 29th, 2005 08:19 |