I'm currently working on a project where I want to hide my form after the submit button is pressed using Jquery.
Firstly, I have included the Jquery library in my code.
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
I am trying to achieve this by targeting the class "form-fields," which encompasses the entire form.
This is the method I have attempted:
<?php if (isset($_POST['process']) && ($_POST['process'] == 1)): ?>
<script type="text/Javascript">
$('#form-fields').hide();
</script>
Unfortunately, this approach does not appear to be effective. Any guidance or suggestions would be greatly appreciated.