Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

alphabet only in jquery


            $( document ).ready(function() {
                $( ".txtOnly" ).keypress(function(e) {
                    var key = e.keyCode;
                    if (key >= 48 && key <= 57) {  // 0-9
                        e.preventDefault();
                    }
                });
            });
 
PREVIOUS NEXT
Tagged: #alphabet #jquery
ADD COMMENT
Topic
Name
3+5 =