SearchBox value will not allow a space code example
Example: java script how to not allow soace
$(function() {
$('#input1').on('keypress', function(e) {
if (e.which == 32){
console.log('Space Detected');
return false;
}
});
});