HI all,
Please find the JQuery to check weather Given Special Character Exists in String or not
$(document).ready(function () {
var charReg = /[ !@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/;
$('#firstNametxtId').keyup(function () {
var isValid = false;
var inputVal = $(this).val();
if (inputVal != "") {
if (charReg.test(inputVal)) {
isValid = true;
}
} else {
}
});
});
Please find the JQuery to check weather Given Special Character Exists in String or not
$(document).ready(function () {
var charReg = /[ !@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/;
$('#firstNametxtId').keyup(function () {
var isValid = false;
var inputVal = $(this).val();
if (inputVal != "") {
if (charReg.test(inputVal)) {
isValid = true;
}
} else {
}
});
});