Hi!
I've a HTML form
I've a function with some parameters that checks the value of each field (it's called within a onBlur event). This function check the type and other restrictions about that field.
I must create a function that checks that all required fields (or options or other kind of form field) are filled (or checked) before submit that form.
I thought to have a global variable where store the validation of each needed field, but I think there must be a better (smarter) way to do the job... and I'm a bit "worried" on fields that are not "editable" like options, checkboxes and so on...
Any suggestion will be appreciated!
TYIA