wallace740
wallace740

Reputation: 1380

How do I change the text of Close button here?

if (typeof (ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) {
            $("#validation_dialog").dialog({
                title: "Form alanlarini kontrol edin!",
                modal: true,
                resizable: false,
                show: "blind",
                hide: "explode",
                buttons: {                        
                    Close: function () {
                        $(this).dialog('close');
                    }
                }
            });
            return false;
        }

I have this on my page, it works fine but where can I change the text of the "Close" button?

Upvotes: 1

Views: 2439

Answers (1)

Dmitrii Tarasov
Dmitrii Tarasov

Reputation: 414

Just specify a name like here:

buttons: {                        
    "Some other name": function () {
        $(this).dialog('close');
    }
}

Upvotes: 3

Related Questions