Created
January 10, 2017 14:34
-
-
Save CB9TOIIIA/7559f97ea8bd257fd3293e9809a788ec to your computer and use it in GitHub Desktop.
Только цифры в input
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
$("input[name='elements[ebdec49f-e1d9-410d-a106-dedbcf41f56a][variations][0][_value][value]']").bind("change keyup input click", function() { | |
if (this.value.match(/[^0-9]/g)) { | |
this.value = this.value.replace(/[^0-9]/g, ''); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment