I am validating a form on a page using the
I check for empty fields and display an error beside the field that is empty so the user will know what to correct (as per usual on a website).My problem is that when the page loads initially, the form is as you would expect empty. so the errors appear upon first loading of the page.
I realise this is easy to fix but the solution is escaping me at the moment.
Can anyone help?