Im using jquery for the name validation I have tried a code which is given below
$(\"#contactname\").keypress(function(e) {
if(e.which < 97 /* a */ || e.w
I finally got solution for this issue
$("#contactname").keypress(function(e) {
if (e.which === 32 && !this.value.length) {
e.preventDefault();
}
var inputValue = event.charCode;
if(!(inputValue >= 65 && inputValue <= 120) && (inputValue != 32 && inputValue != 0)){
event.preventDefault();
}
});
This code working fine for my exact need