Description: Need to test if a value is in an array? Here's a Javascript alternative. No need for an extra jQuery plug-in, however jQuery is a shortcut for labeling the elements.
$("#b").html("Not in here!!!"); for(i=0; i<a.length; i++){
if(v==a[i]){
$("#b").html("Okay!!!");
}
}
} else {
$("#b").html("");
}
});
});
</script>
<input id="a"><span id="b"></span><br>
Test with "<b>one</b>", "<b>two</b>", "<b>three</b>", or "<b>four</b>" <span style="color:red">(Use one only, no spaces!)</span>