title: Jquery display:none, display: inline-block
body: <p>I have to set an element from <code>display: none</code> to <code>display: inline-block</code><br>
  when clicking on another element.</p>
  
  <p>Jquery always detects it <code>display: none</code></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>(function ($) {
      $(document).ready(function() {
          $("#click").click(function () {
              if($("#show").css('display','none')) {
                  $('#show').css('display','inline-block');
              } else {
                  $('#show').css('display','none');
              }
          });
      });
  })(jQuery);</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>#show {
      display: none;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div id="click"&gt;
      Click
  &lt;/div&gt;
  &lt;div id="show"&gt;
      Text
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="http://jsfiddle.net/67bbLm39/" rel="nofollow">Fiddle</a></p>