title: jQuery UI Modal Popup Window on Button Click
body: <p>I try to run some examples from Jquery site and some videos i' ve seen, but it seems like i can't execute them properly. Here's my code :</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;script type="text/javascript" src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript"&gt;
              $(function() {
                  $("#btnclick").click(function() {
                      $("#divpopup").dialog({
                          title: "blabla",
                          width: 430,
                          height: 200,
                          modal: true,
                          buttons: {
                              Close:
                              function() {
                                  $(this).dialog('close');
                              }
                          }
                      });
                  });
              })
          &lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div id="divpopup" style="display:none"&gt;
          blablablabla
          &lt;/div&gt;
          &lt;button type="button" id="btnclick"&gt;Click me&lt;/button&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I can't find what's wrong, the only thing it may be is that i haven't input an important library or something. Every one of my explorers shows me the button, but clicking it doesn't trigger the modal window. Any ideas?</p>
  
  <p>Thank you</p>