Jquery dialog window example not working
<p>Trying to learn Jquery and am on the verge of giving up!! Have spent 2 days trying to get a dialog box to display! </p>

<p>Can anyone help as to why this code doesnt work? I just get hello at the top of the page!</p>

<p>jQuery:</p>

<pre><code>&lt;script src="js/jquery-1.5.2.min.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="js/jquery.ui.core.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
$(document).ready(function() {
    var $dialog = $('#dialog')
    //.html('This dialog will show every time!')
    .dialog({
        autoOpen: false,
        title: 'Basic Dialog'
    });
    $('#opener').click(function() {
        $dialog.dialog('open');
        // prevent the default action, e.g., following a link
        return false;
    });
});
&lt;/script&gt;
</code></pre>

<p>HTML</p>

<pre><code>&lt;div id="dialog"&gt;hello&lt;/div&gt;
&lt;button id="opener" style="margin-left:66px;margin-top:3px;font-size:11px;width:60px"&gt;Click&lt;/button&gt;
</code></pre>
