Hi Group,
I need help with the following script. I have 2 text boxes and 1
dynamically filled list box. There is one search button. I want to prevent
the users from specifying more than one search criteria. The code I've been
playing with is something on the order of:
function validateSearch()
If (form1.txtID.value != "") && ((form1.txtPositon.value != "") ||
(form1.txtDate.value != ""))
Quote:
}else{
If (form1.txtPosition.value != "") && ((form1.txtID.value != "") ||
(form1.txtDate.value != ""))
Quote:
}else{
If (form1.txtDate.value != "") && ((form1.txtPositon.value != "") ||
(form1.txtID.value != ""))
alert("Please use only one search criteria!");
Any help? I'm getting brain frazzled!
--
Donna
* If you can't be a good example, then you'll just have to be a
horrible warning. - Catherine Aird-