Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Array.from(document.querySelectorAll('[message]')).forEach(function(el) {
- el.setAttribute('oninvalid', 'this.setCustomValidity("' + el.getAttribute('message') + '")');
- el.setAttribute('oninput', 'this.setCustomValidity("")')
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement