so here is the code (I have tried many variations of this (with the div, without the div) and jquery itself is working, but not the dialog box) I can do an alert box, but if I put a dialog in, it never works. No popup, nothing. A basic dialog box does not work.
$('#link).click(function(){
$('#dialog).dialog();
}
<div id="dialog" title="Dialog Title" style="display:none"> Some text</div>
Ok. So I figured out that in order to use the dialog box I had to include the jquery-ui declaration at the top of the page instead of just the jquery declaration.