input value starting space not allowed in htm 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;
}
});
});