/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$('input.nospace').keydown(function(e) { if (e.keyCode == 32) { return false; } });