Hi guys, I'm having a trouble closing a jquery dialog box, it gives me an error - Object doesn't support this property or method.
Here's my code loading a jquey dialog box.
[Code]
$(document).ready(function() {
$("#btnLookUp").click(function() {
$("#searchActor").dialog({
autoOpen: "false",
resizable: "false",
height: "350",
width: "320"
});
$("#searchActor").load("LookUp/ActorsList.aspx");
$("#searchActor").dialog("open");
return false;
});
});
[/code]
Using the function below, append whatever selected value on the dialog to the textbox
[code]
function GetSelectedGrid(param) {
$("#txtActorID").val(param);
$("#searchActor").dialog("close");
}
[/code]
However, the highlighted statement prompts the error - Object doesn't support this property or method.
Unable to close dialog
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Ravi ShekharRank #673 · 3.6K reputationPosted May 3, 2013, 1:07 AM EDT
i think You should use
$("#searchActor").hide();
or
$("#searchActor").fadeOut();
or
$("#searchActor").dialog().dialog("close");
instead of
$("#searchActor").dialog("close");
boycoto132 reputationPosted May 3, 2013, 1:19 AM EDT