Here is my code:
function validate() {
if (document.getElementById('check_value').value == 'this') {
$('#block').fadeIn('slow');
}
else {
alert("Nope. Try again");
}
}
I try doing this:
function validate() {
if (document.getElementById('check_value').value == 'this','that','those') {
$('#block').fadeIn('slow');
}
else {
alert("Nope. Try again");
}
}
...and it just accepts absolutely anything that's entered. Is this even possible to do?