title: jquery hide() and slideDown()
body: <pre><code>$(document).ready(function(){
   $('#AddCity').hide();
   $('#AddCityA').click(function(){
       if ( AddCityVar==1 ){
           $('#AddCity').hide();
           var AddCityVar=0;
       }else{
             $('#AddCity').slideDown("slow");
             var AddCityVar=1;
       }
    });
  </code></pre>
  
  <p>I cant figure this out, why div with ID #AddCity is opening on first click on #AddCityA link, but never goes hide on second click? Does $('#AddCityA').click(function() work only once?</p>
  
  <pre><code>&lt;a href="#" id="AddCityA"&gt;Add City&lt;/a&gt; 
  
  &lt;div id="AddCity"&gt;
      here some code
  &lt;/div&gt;
  </code></pre>
  
  <p>Thanks for any help</p>