Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
|
You need to check each form element individually as opposed to checking them as a collective as you're trying to do.
In other words:
Code:
var select1 = frm.elements["Select_1"].selectedIndex; // notice how I did an underscore instead of a space. It's good practice.
if (select1 < 1) {
// Do jah thing.
return false;
}
Repeate for steps 2 and 3.
|