Hi Everyone,
I Developed one Applicatioin Using asp.net webforms. I used one JavaScript file for Validation purpose. Validation of Controls is working fine with Desktop Devices but not supporting in Mobile Browsers.
Ex: Am not allowing Special characters in Text Box i Used following Jquery Method its working fine in Desktop Browser but not in Mobile phone Browswer
$(document).ready(function () {
$(".Char-With-Space").keypress(function (event) {
var inputValue = event.which;
// allow letters and whitespaces only.
if (!(inputValue >= 65 && inputValue <= 120) && (inputValue != 32 && inputValue != 0)) {
event.preventDefault();
}
});
});
Please Help Me. Thank you.. :)