MCPcopy Create free account
hub / github.com/codemistic/Web-Development / setSuccess

Function setSuccess

Form Validation/script.js:75–79  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

73 formControl.className="form-control error";
74}
75function setSuccess(input){
76 const formControl=input.parentElement;
77 formControl.className="form-control success";
78
79}
80
81function isemail(email){
82 return /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(email);

Callers 1

checkInputsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected