change dialog options before open

change dialog options before open


Hi, all
If I create a dialog with autoOpen=false, how can I change some other
options before I actually open it? Such as I would like to change the
function of OK button. Thank you in advance!
Jack