html – Don't validate hidden fields in javascript-ThrowExceptions

Exception or error: Hello I am new to javascript and all these html and stuff. I have the following code from w3schools that validates the input fields. I have html input fields that are like this. <div id=”employed” style=”display:none;”> <p><input placeholder=”Name Of The Organization / Institution …” name=”organization”></p> <p><input placeholder=”Designation …” name=”desig”></p> <p><input placeholder=”Place Of …