MCPcopy Index your code
hub / github.com/AyushSaini00/60minuteJavaScript / dealErrorFor

Function dealErrorFor

Form-Validation/app.js:61–67  ·  view source on GitHub ↗
(element, message)

Source from the content-addressed store, hash-verified

59}
60
61function dealErrorFor(element, message){
62 const row = element.parentElement;
63 const small = row.querySelector('small');
64
65 row.className = 'row error';
66 small.innerText = message;
67}
68
69function dealSuccessFor(input){
70 const row = input.parentElement;

Callers 1

verifyInputsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected