Q:

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>
0

New to Communities?

Join the community