title: How to determine the current state of jQuery toggle()
body: <p>I'm showing and hiding divs when another div is clicked on. I need to be able to determine if a particular div is either shown or hidden.</p>
  
  <p>Ultimately what I'm trying to do is, when a certain div is clicked on, all other "show/hide" divs should be hidden and then determine if the clicked-div's related div is showing, if so hide it, otherwise show it.</p>
  
  <p>I also need to add/remove a css class (for background color) to the shown/hidden div based on its toggle state.</p>
  
  <p>Here's the jQuery code I'm using to toggle the show/hide state of the divs:</p>
  
  <pre><code>$('#movieListTable').on('click', 'div.vitalsTable', function (e) {
  
      // Don't do anything if the Edit button or Delete checkbox is clicked
      if (event.target.className !== 'btnEditMovie' &amp;&amp; event.target.className !== 'chkDeleteMovie') {
  
          $(this).parent().parent().find('div.detailsTable').toggle('blind','easeInOutQuart', 300);
      }
  });
  </code></pre>
  
  <p>The weird - and frustrating - thing is, everything I've read, including answers here at SO, indicate I should just be able to either check for the display state ("none") or the visible property, but checking in the console neither of those are being set on the div that is being shown/hidden.</p>
  
  <p>I created a <a href="http://jsfiddle.net/eventide/wWaDm/" rel="noreferrer">jsFiddle</a> for you to mess with.</p>
  
  <p>The <a href="http://api.jquery.com/toggle/" rel="noreferrer">jQuery documentation on toggle()</a> discusses, about 3/4 of the way down the page, a boolean parameter "showOrHide" for one of the ways to use toggle(), but I haven't been able to figure out how to use that myself...</p>