175
rated 0 times
[
177]
[
2]
/ answers: 1 / hits: 22208
/ 11 Years ago, thu, june 27, 2013, 12:00:00
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?
More From » string