Copy link to clipboard
Copied
Hello ! I am fairly new to Javascript coding and would need help in the validation of my form.
Basically, I have a form with multiple required dropdown lists and the default option is selected to '' '' (just a space).
I have a submit button at the end of the form that validates if all the required fields are filled. However, when a dropdown list stays on the default option '' '' it still lets the user submit the form.
What code (and where) should I use in order to validate that the required dropdown lists are not on the default option ?
*I know that there are multiple similar subject, but I have been looking for hours now and cannot seem to find the code I should be using and where I should be using it in my form*
Thank you so much for your help!
Copy link to clipboard
Copied