title: Jquery - How to get the style display attribute "none / block"
body: <p>Is there a way to get the style: display attribute which would have either none or block?</p>
  
  <p>DIV :</p>
  
  <pre><code>&lt;div id="ctl00_MainContentAreaPlaceHolder_cellPhone_input_msg_container" class="Error cellphone" style="display: block;"&gt;
  
       &lt;p class="cellphone" style="display: block;"&gt;Text&lt;/p&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>I know that there is a way to find out if the DIV is hidden or not but in my case this div is dynamically injected so it always shows up as visible false thus I cannot use that :</p>
  
  <pre><code>$j('.Error .cellphone').is(':hidden')
  </code></pre>
  
  <p>I am able to get the result "display:block" using :</p>
  
  <pre><code>$j('div.contextualError.ckgcellphone').attr('style')
  </code></pre>
  
  <p>Is there a way to get just the value "block" or "none" or is there a better/more efficient way to do this?</p>