alphabet only in jquery code example
Example: alphabet only in jquery
<script>
$( document ).ready(function() {
$( ".txtOnly" ).keypress(function(e) {
var key = e.keyCode;
if (key >= 48 && key <= 57) { // 0-9
e.preventDefault();
}
});
});
</script>