Hellow all ..
Is there anyone who can help me on below Js. Right now it is working fine with me but I can't use backspace.
Below Js allow texts and I can use delete key, how to allow backspace as well.
$(document).ready(function(){
$("#inputTextBox").keypress(function(event){
var inputValue = event.which;
// allow letters and whitespaces only.
if(!(inputValue >= 65 && inputValue <= 123) && (inputValue != 32 && inputValue != 0 )) {
event.preventDefault();
}
console.log(inputValue);
});
});