title: jquery dialog on button click
body: <p>I'm trying to get a jquery dialog to launch on a button click but does not seem to be working. Any help would be appreciated:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>    $('#wrapper').dialog({
          autoOpen: false,
          title: 'Basic Dialog'
      });
      $('#opener').click(function() {
          $(this).dialog('open');
          return false;
      });
      
      </code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://code.jquery.com/ui/1.12.0/jquery-ui.min.js"&gt;&lt;/script&gt;
  &lt;button id="opener"&gt;Open the dialog&lt;/button&gt;
      &lt;div id="wrapper"&gt;
      &lt;p&gt;Some txt goes here&lt;/p&gt;
      &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Thanks!</p>