tags:

views:

46

answers:

2

I have textbox to enter only alphabet and numerical values. I do not want use plugin. Is it possible'

+1  A: 
$(":text").keyup(function() {
    if (this.value.match(/[^a-zA-Z0-9]/)) {
        this.value = this.value.replace(/[^a-zA-Z0-9]/g, '');
    }
});
nickf
very helping nick. thaks
Mario
A: 

Check this... Sweet Validation