I have to validate a series of inputs on my app. The user can enter any character cause the app has multi-language support.
So i need block only numbers and special characters but not the accentuated ones...
Can you guys help?
My code:
var textInputs,
AllowRegex = [A-Za-z\u00c0-\u017e ];
textInputs = document.querySelectorAll('input[type=text]');
for(i = 0; i < textInputs.length; i++){
if ( !AllowRegex.test(textInputs[i].value) ){
alert(textInputs[i].value);
} else {
$obj.list[i] = textInputs[i].value;
}
}
console.log($obj.list);