Hi -
Wondering if anyone knows how to code a function fieldcheck to prevent
users from choosing the same date from dual drop list on my web form
using this include file example;
<option value="none">Scroll through the list to choose a date
<option value="May 11 2004, (Tuesday), 1pm">May 11 2004, (Tuesday),
1pm
<option value="May 11 2004, (Tuesday), 2:30pm">May 11 2004, (Tuesday),
2:30pm
I'd prefer to alert the user (return false) if this string ">May 11
2004, is the same as this string ">May 11 2004, on the next line of
the include file.
I now have this code working nicely to prevent the same choice;
FirstCh=document.laptop.FirstCh.value
SecondCh=document.laptop.SecondCh.value
if (FirstCh == "none" || SecondCh == "none" || FirstCh == SecondCh) {
alert("Please choose two [different] dates/times for your laptop
delivery.")
document.laptop.FirstCh.focus()
return false
}
....but I'd prefer to alert the user (return false) if this string
">May 11 2004, is the same as this string ">May 11 2004, on the next
line of the include file.
Your help is greatly appreciated.
Thanks,
Joe