In other words, whenever a person first clicks an element, and then clicks anywhere outside of it. Onblur is used when you want to check each element (ie: text, textarea boxes ) individually, and ask the user to correct the input before moving on to the next box.
The other event, onsubmit, validates the form at the end, as the user presses the submit button.
But we may need to go dd/mm/yyyy (alternatively, dd-mm-yyyy) also, and yyyy/mm/dd (alternatively, yyyy-mm-dd) format is no exception too.
It is not that easy to play with different format of dates at different places.
Mostly the mm/dd/yyyy (alternatively, mm-dd-yyyy) format of date is used.
In other words: If a date/time is created in GMT (Greenwich Mean Time), the date/time will be converted to CDT (Central US Daylight Time) if a user browses from central US.
Executes Java Script whenever a user moves with the mouse the focus away from an element within a form.
In the above form, we are calling validate() to validate data when onsubmit event is occurring.var validate Text Areas = function() You would call this method during your form validation.