title: hide and show two div on two condition using jquery
body: <p>i want to hide and show 2 different div on two condition </p>
  
  <p>for example  when count value reach 0 i want to hide #id1 and show #id2 and when variable count value increase from  0  i want to reverse the effect how can i accomplish it with jquery thanks in advance..</p>
  
  <pre><code>var count=0
  $(document).ready(function{      
     if(count == 0) {
        $('#id1').hide();
     }else{
        $('#id2').show();
     }
  });
  </code></pre>