how to not allow space in textbox using javascript 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;
}
});
});