Is it possible to set the ID for the buttons in a jQuery UI dialog, so that I can refer to them later through jQuery? For example, trigger events, disable etc?
Or you can do it as an array:
$("#myDialog").dialog({ buttons : [{ text: "OK", id: "ok", click: function(){ alert("clicked"); } }] });
http://docs.jquery.com/UI/Dialog