KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I want to write an if/else statement that tests if the value of a text input does NOT equal either one of two different values. Like this (excuse my pseudo-English code): var test = $("#test").val(); if (test does not equal A or B){ do stuff; } else { do other stuff; } How do I write the condition for the if statement on line 2?
Tags (comma-separated)
Save Edits
Cancel