Created
August 6, 2015 15:06
-
-
Save adanzilla/ea0f2c62b8eb8c253fce to your computer and use it in GitHub Desktop.
jQuery - Validación acepta solo numeros
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery('.solo_numeros').keyup(function(e){ | |
if (/\D/g.test(this.value)){this.value = this.value.replace(/\D/g, '');} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment