showing results for - "java script how to not allow soace"
Noémie
17 Apr 2019
1 $(function() {
2        $('#input1').on('keypress', function(e) {
3            if (e.which == 32){
4                console.log('Space Detected');
5                return false;
6            }
7        });
8});