3
我想爲jquery對話框添加一個額外的屬性。如何爲jQuery UI對話框添加自定義屬性
$(".pipeline-dialog").dialog({
dialogClass: "dialog_status,
autoOpen: false
});
如何在創建對話框時添加「dialog-status」等屬性。
有沒有辦法做到這一點?
我想爲jquery對話框添加一個額外的屬性。如何爲jQuery UI對話框添加自定義屬性
$(".pipeline-dialog").dialog({
dialogClass: "dialog_status,
autoOpen: false
});
如何在創建對話框時添加「dialog-status」等屬性。
有沒有辦法做到這一點?
試試這個:
$(".pipeline-dialog").dialog({
//initial value for custom attribute
customAttribute: "value"
});
//get value
var customAttrValue = $(".pipeline-dialog").dialog("option", "customAttribute");
//set new value
$(".pipeline-dialog").dialog("option", "customAttribute", "new value");