Powered by Blogger.

jQuery only allow numbers and letters


Just use the code of:


$("#your_fild_id").keyup( function(){
    //only number & letters
    this.value = this.value.replace(/[^a-zA-z0-9]/g, '');
});

No comments