Dialog button trigger

Dialog button trigger


I have a dialog created using ".dialog" method from jquery UI. There
are two buttons created: "Ok" and "Cancel".
I want to have the user to click on some link inside the dialog to be
able to trigger the "Ok" button's submit function. Any suggestion to
use inherent jquery dialog methods to do that instead of accessing the
DOM of the button directly?
Thanks