@aanacif
Posted
I feel your pain, keep pushing tho.
Quite a few different ways you could approach this. Maybe have a look at JS Element.setAttribute(). So you could use the 'hidden' attribute for example.. Or even give the error message a class say 'show'... then use JS classList.toggle to add/remove it. Or even hook it to the form validations. Have a look at oninvalid event for the inputs...
Hope that helps :)
Marked as helpful