I am using this code for a X 'n' O file. What I have done is an IF statement with NOT option but using || operator I want to define multiple choices. That states the problem here. Please help me. Code below:
if (!xslot=="1" || !xslot=="2" || !xslot=="3" || !xslot=="4" || !xslot=="5" || !xslot=="6" || !xslot=="7" || !xslot=="8" || !xslot=="9") {
alert("Please enter a valid slot number from 1 to 9.");
}
Great thanks to anyone who helps me.