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>
Also in JavaScript:
- js omit last string
- javascript dynamicly include another js file
- vuejs set
- how to read json file in python
- how to parse json in java
- fetch composition API in Vue3
- how to expand compressed js file vscode
- how to run cypress test
- how to define cardTitle background image in mdl in reactjs
- javascript .slice() function
- async and await
- copy array javascript
- 'userprofile/:id', ionic
- json example array
- can you do a join() in js without the commas
- js add class
- javascript go to page
- js prompt
- https.get module in nodejs
- put new attribute on html tag using javascript
- async await anonymous function
- how to append value to input field using jquery
- angular get current route
- error: Error: Unable to resolve module `crypto` from `node_modules\crypto-js\core.js`: crypto could not be found within the project.