<input id="input" type="password" data-limit='pattern:"^[a-zA-Z0-9]$"'>
<p class="tip"></p>
<script src="js/Validator.js"></script>
<script src="js/input.js"></script>
<script>
var input = document.querySelector('#input');
var tip = document.querySelector('.tip');
new Input(input, tip, "blur");
</script>
coffeeworm / formvalidator Goto Github PK
View Code? Open in Web Editor NEWA form validator written by es5.
Home Page: https://coffeeworm.github.io/FormValidator/index.html