title: Check if DIV is visible using javascript
body: <p>i needed to hide a div on my code behind:</p>
  
  <pre><code>bool hideDiv = false
  //codes to change hideDiv
  myDiv.visible = hideDiv;
  </code></pre>
  
  <p>and i want to check visibility of my div using javascript:</p>
  
  <pre><code>if (jQuery("myDiv") != null){
      //some codes
  }
  else{
      //some codes
  }
  </code></pre>
  
  <p>and the 'jQuery("myDiv")' is always not null (even if the div was actually not visible), what is the better way to check if a div is visible?</p>