Using jQuery with php with IF logic
<p>I have some php conditional logic...basically I want to use jQuery to show or hide certain div's when I submit a form:</p>

<pre><code>&lt;?php 

if (isset($_POST['submit']) {
   /*
      If the user submits the form and 
      use jQuery to hide an existing div tag
      &lt;script type="text/javascript"&gt;
      $('#mydiv').hide();
      &lt;/script&gt;
   */

}
?&gt;
</code></pre>

<p>Is there a sort-of non-messy way to go about mixing php and jQuery like this? I just want my jQuery to be in one block and my php to be in a separate block (i.e. not interspersed)</p>
