title: TypeError dialog is not a function
body: <p>I need help with this javascript code. I keep getting this error:</p>
  
  <pre><code>Uncaught TypeError: $(...).dialog is not a function
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>&lt;script&gt;
  $(function () {
  $('#tdog').dialog({
       autoOpen: false,
       width: 200,
       modal: true,
    });
  });
  &lt;/script&gt;
  
  &lt;div id="tdog"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I included the jquery import in the header. What am I doing wrong?</p>