I have a form that has form entries and submission confirmation on the same page. When submitted, currently the form entries remain when my submission message displays - so I wish to use Jquery to hide the form entries. My form has the the id of #mysubscription, can anyone spot why this form isn't clearing on submission?
<?php
}
if (isset($contact_form_submitted) && $contact_form_submitted) {
?>
<p class="success"><strong><?php echo htmlspecialchars((isset($contact_form_message)) ? $contact_form_message : 'Submission successful.', ENT_QUOTES, 'utf-8'); ?></strong></p>
<script type="text/javascript">jQuery('#mysubscription').hide()</script>
<?php
}
?>