title: How to call a href by onclick event of a button?
body: <p>I have the following <code>a href</code> I use to open jquery dialogs, which works fine. Basically, the openDialog class has attached the jquery dialog code:</p>
  
  <pre><code> &lt;a class='openDialog' data-dialog-id='myEditDlg' data-dialog-autosize='false' data-dialog-alt='580' data-dialog-larg='740' data-dialog-title='test dialog' href='/mycontroller/EditDlg/myid'&gt;&lt;/a&gt;
  </code></pre>
  
  <p><strong>Now, I'd like to call it by the <code>onclick</code> event of a button.</strong>
  Basically, I'd like to have the same behaviour of the clicked <code>&lt;a class='openDialog' href</code> when I click a button. How can I do it?**</p>