I have created a form with a lot of if statements in it, when a user selects certain objects, the values of other objects changes etc.
The form mostly hinges on the first decision the user makes, currently, if the user fills out the form and then changes the first selection, the form values don't change to reflect this first change, so I want to reset the form when the first select box is changed.
Here is the html for my first dropdown box:
<article id="event_type_container">
<h4 class="calc_title">EVENT TYPE</h4>
<form action="quote_mailer.php" method="POST" name="myform" id="quote_form" onsubmit="Dosubmit();">
<select class="select" id="eventType" name="eventType" size="1">
<option name="first" value="0"></option>
<option value="wedding" name="wedding">Wedding</option>
<option value="private_party" name="private_party">Private Event</option>
<!--<option value="corporate" name="corporate">Corporate Event</option>-->
</select>
</article>
Is there a way using jQuery that if a user selects an option I can reset the whole form?