Form validation with JavaScript Question

  You are currently not logged in. You can view the forums, but cannot post messages. Log In | Register

13-Aug-08 15:49
Hi! I found the tutorial on form validation with javascript to be very useful but I am having one issue. As soon as I change the "Your Age" drop down to a multi-selection field with a height to it the validation no longer works. Here is my page: http://207.241.65.183/admintool/videos/test.htm

Will javascript validation not work on a field like this? Ultimately I would have the user select any item and not have the "Please select an option" copy in there. They would just be forced in to selecting one of the options.

Any help is appreciated! Thanks again!

-Amber
10-Sep-08 12:37
to return the value of a select box you need to use

onchange="functionName(this.options[this.selectedIndex].value)"

--
Chris.
So long, and thanks for all the fish.
http://webmaster-talk.eu/

 
New posts
Old posts

Follow Elated