mercoledì 27 febbraio 2013

Jquery - limitare numero caratteri in una tabella input

Si risolve con il metodo keypress:
$("#inputbox").live('keypress', function(e) {
           if ($('#inputbox').length >= 2) {
                        e.preventDefault();
           } else {
                       
            ) });

Nessun commento:

Posta un commento