I have a form that has has almost all input types are required, Like the HTML below:
<p>Name:*</p>
<input type="text" name="Name" required>
<p>Company Name: </p>
<input type="text" name="Company_Name">
<p>Email: *</p>
<input type="email" size="30" name="Email" required>
<p>Phone:*</p>
<input type="text" name="Phone" required>
At the end of the form, I have a checkbox that states,
<div class="checkbox">
<input type="checkbox" name="checkbox_name[]" >
<p>I'm Going</p>
<input type="checkbox" name="checkbox_name[]" >
<p>thanks, but I can't go</p>
<input type="checkbox" name="checkbox_name[]" required>
<p>I have read the above information</p>
Is there a way I can "de-require" the above input types if and only if the "Thanks, but I can't go" checkbox is marked?
Aucun commentaire:
Enregistrer un commentaire