Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (let i of inputs) {
- if( i.getAttribute("name") !== "birthday" ){
- i.style.backgroundColor = "white";
- i.classList.remove("valid");
- var id = i.id;
- var d = document.querySelector("label[for={id}]".replace("{id}", "invalid" + id));
- if(d !== null){
- d.remove();
- }
- }
- }
Add Comment
Please, Sign In to add comment