Don't allow white space in input field using jquery code example
Example: Don't allow white space in input field using jquery
$('input').keypress(function( e ) {
if(e.which === 32)
return false;
});
$('input').keypress(function( e ) {
if(e.which === 32)
return false;
});