Answers for "alphabet only in jquery"

0

alphabet only in jquery

$( document ).ready(function() {
                $( ".txtOnly" ).keypress(function(e) {
                    var key = e.keyCode;
                    if (key >= 48 && key <= 57) {  // 0-9
                        e.preventDefault();
                    }
                });
            });
Posted by: Guest on July-23-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language