Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

java script how to not allow soace

 $(function() {
        $('#input1').on('keypress', function(e) {
            if (e.which == 32){
                console.log('Space Detected');
                return false;
            }
        });
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #script #soace
ADD COMMENT
Topic
Name
3+3 =