I'm adding some utility functions to jQuery UI dialog, and I need a way to get the selector when attaching functionality to every dialog open:
$(document).on("dialogopen", ".ui-dialog", function (event, ui) {
What I've found is that in the object, the selector is empty:
selector: "",
And I can't trust that every dialog will be opened by an id, so how do I find the selector on dialogopen?