I'm working on a validation function for html input tags. I've the string of the value of the particular input and the string containing the allowed characters.
var allowed = 'abcdefghijklmnopqrstuvwxyz"; var value = element.value; I'd like to write a function to determine if the value contains character only from the allowed string. I'm looking for a straight-forward and simple solution. Any ideas?