Answers for "Don't allow white space in input field using jquery"

0

Don't allow white space in input field using jquery

$('input').keypress(function( e ) {
    if(e.which === 32) 
        return false;
});
Posted by: Guest on June-01-2021

Code answers related to "Don't allow white space in input field using jquery"

Browse Popular Code Answers by Language