title: jQuery check if element has a specific style property (display)
body: <p>I need to have a if/else statement inside a function. How do you check if an element (e.g. #cadrage) has a display style property? This is what I have found around the net and yet, it is not working..</p>
  
  <pre><code>if( $('#cadrage').attr('style').display == 'block' ) {
        // do something
  } else {
        // do something
  }
  </code></pre>