Guest User

Untitled

a guest
Apr 4th, 2018
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var list1 = document.getElementById("list1");
  2.        
  3.         // hardcode the options (who cares, I don't like web dev)
  4.         if ((list1.value !== "Option 1") || (list1.value !== "Option 2") || (list1.value !== "Option 3") || (list1.value !== "Option 4") || (list1.value !== "Option 5"))
  5.         {
  6.             alert("Your list must contain predefined options!");
  7.             event.preventDefault();
  8.         }
Advertisement
Add Comment
Please, Sign In to add comment