Tuesday, October 11, 2011

Dialog box

$("#imgDialog").click(function () {
            $("#divTest").dialog("open");
        });

        $("#divTest").dialog({
            autoOpen: false,
            height: 200,
            width: 300,
            modal: true,
            title: "Test",
            buttons: {
                "Save": function () {
                },
                Cancel: function () {
                    $(this).dialog("close");
                }
            },
            close: function () {
                allFields.val("").removeClass("ui-state-error");
                    }
        });

No comments:

Post a Comment