username not space validation form validate plugin in jquery 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;
})