![]() |
35$ Paypal for help with a j-a-v-a-s-c-r-i-p-t
Need some help adding another validation to this script.
It already validates the top two forms, but it also needs to validate that at least 1 of the check box's has been checked. http://www.gainesvillewebs.com/czari..._results-2.htm Thanks in advance. |
I can do everything
|
Ok. It has to give the alret just like the two forms above the check boxes.
|
Do you want me to mail you the js file???
This script works great, but we need to add in the check box thing. |
Bump, I guess I am still looking for help.
|
ICQ: 45147309
contact me |
Quote:
trying to get you now... |
icq below if you still need help.
|
I wish I had some photoshop skillz! :Graucho :thumbsup
|
Yo I will STOP BY if you are in Gville... my charge is 8 ounces of sirloin and a couple of beers.
;) |
In your test of form document.forms['itinsearch'], the checkboxes are type "select-one" and will be in a zero-indexed array. You can loop through the array length to check whether any are selected and return the error as needed.
On a side note, it is good practice to always have a default value selected. Especially in this instance, where it is not possible to place an error message next to the offending field, because you will have no idea which field the user intends to select. So, force the user to change from the default selection. |
Hmmm... Time expired to edit the post. :/
The type is not 'select-one'. That applies to comboboxes. The type attribute will return 'radio'. You should test for 'checked' state. btw, happy easter... http://www.undeadclan.com/images/HappyEaster.jpg |
All times are GMT -7. The time now is 07:54 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123