title: Simple '$().show()' not working in 'if/else if' statement
body: <p><a href="http://jsfiddle.net/Shmoyojoe/2eCUa/2/" rel="nofollow">Here</a> is the fiddle.</p>
  
  <p>I am trying to make a div show by using <code>$().show()</code>, but it is not working. I suspect it is because it's in a <code>else if () {...}</code>, but I am not sure.</p>
  
  <p>The <code>if/else if</code> statement:</p>
  
  <pre><code>if (i !== "" &amp;&amp; ii !== "" &amp;&amp; iii !== "") {
      $('#dialog').show();
          $('#dialog').dialog({
              modal: true,
              dialogClass: 'no-close',
              buttons: [{
                  text: 'OK',
                  click: function () {
                      $(this).dialog('close');
                  }
              }]
          });
      } else if (i === "" || ii === "" || iii === "") {
          $('#error').show();
      }
  </code></pre>