disable space bar

Kmandapalli
Posted by Kmandapalli under ASP.NET category on | Points: 40 | Views : 576
$(document).ready(function(){ 
$("#txtNoSpaces").keydown(function(event) {
if (event.keyCode == 32) {
event.preventDefault();
}
});
});

Comments or Responses

Posted by: Amatya on: 8/14/2015 Level:Silver | Status: [Member] | Points: 10
Goood 1 :) New tips i got to know here.. Now Experimenting :)

Login to post response