Posted By

ZaiSL on 01/17/11


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

virendrakryadav


Disable Spacebar in a textfield with jQuery


 / Published in: jQuery
 

  1. $('input.nospace').keydown(function(e) {
  2. if (e.keyCode == 32) {
  3. return false;
  4. }
  5. });

Report this snippet  

You need to login to post a comment.