title: change display:none with jquery with if-else
body: <p>I've two divs: the div "#Stage" is display="block" and from time to time "display:none". 
  Depending on this I'll appear my second div "#case", default is display="none".</p>
  
  <p>So I tried these two ways:</p>
  
  <pre><code>if ($('#Stage').css('display') == 'none') {
      $('#case').css('display','block')
  } // added display:none; to my css file at #case
  
  if ($('#Stage').css('display') == 'none'){
      $('#case').show()
  } else if ($('#Stage').css('display') != 'none'){
      $('#case').hide()
  }
  </code></pre>
  
  <p>But both of these methods doesn't work, means the #case div is always on display:none.
  Does anyone know how to solve it?</p>
  
  <p>THanks</p>