How do I discover all available properties when using a jQuery UI widget?
问题 I have recently found that there are additional properties for some jQuery UI widgets that work, but are not documented. For example, when providing the buttons property on a jQuery UI 1.11.4 dialog box, I can use sub-properties like id and autofocus , neither of which are listed in the official documentation. $("#myDialog").dialog({ title: "Do the thing?" buttons: [ { text: "Yes", id: "dialogBtnYes", click: function () { $(this).dialog("close") } }, { text: "No thanks", id: "dialogBtnNo",