showing results for - "alphabet only in jquery"
Giovanni
28 Apr 2019
1
2            $( document ).ready(function() {
3                $( ".txtOnly" ).keypress(function(e) {
4                    var key = e.keyCode;
5                    if (key >= 48 && key <= 57) {  // 0-9
6                        e.preventDefault();
7                    }
8                });
9            });