title: Why is simple JQuery dialog/popup not working?
body: <p>I put it all in one page and it should work and is not working:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;  &lt;link href="css_js/styles.css" rel="stylesheet" type="text/css"&gt;
      &lt;script language="JavaScript1.2" src="css_js/jquery-1.7.1.min.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script language="JavaScript1.2" src="css_js/jquery-ui-1.8.17.custom.min.js" type="text/javascript"&gt;&lt;/script&gt;   
      &lt;script language="JavaScript1.2" type="text/javascript"&gt;
  function popup() {
      alert('test');
      var popup = $('.newpopup');
      popup.draggable();
      popup.resizable();
      popup.html('&lt;p&gt;Where is pancakes house?&lt;/p&gt;');
      popup.show('fast');
  }
  $('button').click(popup);
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div class='newpopup'&gt;&lt;/div&gt;
  &lt;button&gt;popup&lt;/button&gt;  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I want to make a simple popup / dialog with Jquery but it is not working at all. What is wrong with it?</p>