jquery-confirm icon indicating copy to clipboard operation
jquery-confirm copied to clipboard

Preselection of "OK" Button

Open zamani84 opened this issue 4 years ago • 0 comments

jquery-confirm version: v3.3.4

I'm submitting a ... (check one with "x") [ ] bug report [ ] feature request [x ] support request

Current behavior: Wen the confirm dialog is opened, no preselected button can be selected by default.

Expected behavior:

I want that a specific button is preselected. How to get this feature? I just want, that the "OK" button is selected by default.

Steps to reproduce: Just create a yes/no confirm dialog.

Related code:

        width:"30%",
        title: 'Bitte bestätigen',
        content: text,
        buttons: {
            confirm: {
                text:"OK",
                action: function() {
// OK Action
                }
            },
            cancel:{
                text: "abbrechen",
                action: function () {
                    // cancel action

                }
            }
        }
    });
insert any relevant code here

Other information:

zamani84 avatar Jul 14 '21 10:07 zamani84