I'am using the following Regex Validation in order enter alpha only (Text Only values) to the text field. The regex validation works in pc environment, but hosted and access through an Android device through chrome app, the validation doesn't work (Users can enter symbols as well as numbers). Appreciate your valuable help.
The Method I tried
<input type="text" id="name1" placeholder="Name" class="form-control" />
$('#name1').bind('keypress', alphaOnly);
function alphaOnly(event) {
var value = String.fromCharCode(event.which);
var pattern = new RegExp(/[a-zA-Z]/i);
return pattern.test(value);
}