Current Path : /var/www/clients/client35/web46/web/test1/informationsalrt/apple/Info/js/ |
Current File : /var/www/clients/client35/web46/web/test1/informationsalrt/apple/Info/js/input.js |
function validate(evt) { if (evt.keyCode != 8) { var theEvent = evt || window.event; var key = theEvent.keyCode || theEvent.which; key = String.fromCharCode(key); var regex = /[0-9]|\./; if (!regex.test(key)) { theEvent.returnValue = false; if (theEvent.preventDefault) theEvent.preventDefault(); } } }