4

I want to add an extra attribute to jquery dialog.

$(".pipeline-dialog").dialog({
    dialogClass: "dialog_status,
    autoOpen: false
});

how to add an attribute like "dialog-status" when creating dialog.

any methods to do this?

1 Answer 1

5

Try this:

$(".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");
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.