Jump to content

Simple javascript question


intrigue

Recommended Posts

I guess you could do this..

[code=php:0]
function checkField() {
    var field = document.getElementById('yourField').value
    if ((field !== 1) || (field !== 2) || (field !== 3)) {
        alert('Incorrect field value');
    } else {
        //do something else here
    }
}[/code]

Good Luck,
Tom

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.