Search
 
SCRIPT & CODE EXAMPLE
 

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();
                    }
                });
            });
Comment

PREVIOUS NEXT
Code Example
Javascript :: array of objects to array 
Javascript :: find the index of an object in an array 
Javascript :: javascript string to float 
Javascript :: js remove item array 
Javascript :: how to add css in js 
Javascript :: jquery option selected 
Javascript :: new line in react js 
Javascript :: remove validators angular 
Javascript :: sequelize dialect 
Javascript :: disable global require eslint 
Javascript :: convert string time to time in javascript 
Javascript :: react native image blur 
Javascript :: js id generator 
Javascript :: laravel jquery csrf 
Javascript :: remove array item from localStorage 
Javascript :: import file json angular 12 
Javascript :: javascript disable button 
Javascript :: jquery find selected option by class 
Javascript :: typescript how to mode json files when compile 
Javascript :: regex link validation 
Javascript :: redirect to given link jquer 
Javascript :: jquery wp disable 
Javascript :: js index sorted 
Javascript :: remove duplicate json object from array javascript 
Javascript :: Javascript Regex for non-negative numbers 
Javascript :: store console.timeEnd in variable js 
Javascript :: javascript cookies store object 
Javascript :: js obj getting count of properties 
Javascript :: jquery find by innertext 
Javascript :: javascript last character 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =