title: jQuery Modal dialog onclick
body: <p>So, I have a link,</p>
  
  <pre><code>&lt;a href="javascript: void(0)" id="dialog_link"&gt;I'm the link&lt;/a&gt;
  </code></pre>
  
  <p>and I am trying to get a modal dialog to open up when you click the link, with an accept button, and when you click the accept button, it will forward to a new page. This is the dialog script, </p>
  
  <pre><code>&lt;script&gt;
  $(document).ready(function() {
      $('#dialog').dialog({ autoOpen: false })
      $('#dialog_link').click(function(){ 
          $( "#dialog" ).dialog('open', {
              modal:true,
              buttons: {
                  Accept: function() {
                      $( this ).dialog( "close" );
                  }
              }
          }); 
      });
  }); 
  </code></pre>
  
  <p></p>
  
  <p>For now the accept should just close the box. The problem I am having is that is opens the dialog, but doesn't grab any of the options I specified. Anyone know how to fix it?</p>