I have the following a href
I use to open jquery dialogs, which works fine. Basically, the openDialog class has attached the jquery dialog code:
<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'></a>
Now, I'd like to call it by the onclick
event of a button.
Basically, I'd like to have the same behaviour of the clicked <a class='openDialog' href
when I click a button. How can I do it?**