My current form displays errors using alerts, but I want to update it so that the errors are printed above the input fields for easy reference by users. This is the existing code for displaying errors:
function showErrors() {
if (errList.length >= 1)
alert(errList.join("\n"));
}
Here is a jsfiddle with the remaining code: https://jsfiddle.net/rvomhauo/
I want to display the errors in this section: