I have a code like this:
if (action == \'John\' || action == \'John Beckham\' || action == \'Henry John\'){ alert(\'true!\'); }
How do I m
if using jquery, then you could do:
var arr = ['a','b','c','d','e','f','g']; if( $.inArray(action, arr) !== -1 ) { alert("true"); }