I need a jquery function that allows only alphabets and spaces on textbox and prevent users to type numbers and symbols.

My code below is working but the symbols are allowed in textbox.

**HTML**:

```
<input id="inputTextBox" type="text" />

```

**jQuery**:

```
$(document).ready(function(){
    $("#inputTextBox").keypress(function(event){
        var inputValue = event.which;
        //if digits or not a space then don't let keypress work.
        if((inputValue > 47 && inputValue < 58) && (inputValue != 32)){
            event.preventDefault();
        }
    });
});

```