G
Griff
Hi!
I'm using JavaScript on an HTML page for form validation. I have a
form value (theForm.ProdType1) which represents a picklist from which
users may make multiple selections; essentially, this is a Select
object with the "multiple" attribute. There are 20 options to choose
from in this object; one of the options (we'll call it option X)
should NEVER be selected with any other option in the object. Let's
say that the user has selected two options, and one of the options is
option X; how can I alert the user that this is not allowed? I'm not
sure how to identify option X's value out of all the values that have
been selected by the user, if the user has made two or more selections
from the picklist.
Thanks!
Griff
I'm using JavaScript on an HTML page for form validation. I have a
form value (theForm.ProdType1) which represents a picklist from which
users may make multiple selections; essentially, this is a Select
object with the "multiple" attribute. There are 20 options to choose
from in this object; one of the options (we'll call it option X)
should NEVER be selected with any other option in the object. Let's
say that the user has selected two options, and one of the options is
option X; how can I alert the user that this is not allowed? I'm not
sure how to identify option X's value out of all the values that have
been selected by the user, if the user has made two or more selections
from the picklist.
Thanks!
Griff