jquery no space validation code example
Example: jquery validator no space
$('#IdElement').keypress(function (e) {
if (e.which === 32)
return false;
})
$('#IdElement').keypress(function (e) {
if (e.which === 32)
return false;
})