Salve
ho questo script:
come posso modificarlo che mi permette di inserire nel campo tutto (lettere, apostrofi, spazi, virgole punti etc) tranne i numericodice:<script type="text/javascript"> $(document).ready(function(){ $("#campo").keypress(function(event){ var inputValue = event.which; // allow letters and whitespaces only. if(!(inputValue >= 65 && inputValue <= 120) && (inputValue != 32 && inputValue != 0)) { event.preventDefault(); } }); }); </script>
Grazie
G.