(input, message)
| 6 | |
| 7 | // Show input error message |
| 8 | function showError(input, message) { |
| 9 | const formControl = input.parentElement; |
| 10 | formControl.className = 'form-control error'; |
| 11 | const small = formControl.querySelector('small'); |
| 12 | small.innerText = message; |
| 13 | } |
| 14 | |
| 15 | // Show success outline |
| 16 | function showSuccess(input) { |
no outgoing calls
no test coverage detected