MARSHAL327

Untitled

Mar 17th, 2021 (edited)
503
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for (let i of inputs) {            
  2. if( i.getAttribute("name") !== "birthday" ){
  3.  i.style.backgroundColor = "white";
  4.                 i.classList.remove("valid");
  5.                 var id = i.id;
  6.                 var d = document.querySelector("label[for={id}]".replace("{id}", "invalid" + id));
  7.                 if(d !== null){
  8.                     d.remove();
  9.                 }
  10. }  
  11. }
Add Comment
Please, Sign In to add comment