Dirty-flow
Dirty-flow

Reputation: 2300

jQuery Dialog: Umlaut in Buttons

Thats my code:

 $("#contactDeleteDialog").dialog({
       title: "Löschen",
                bgiframe: true,
                autoOpen: false,
                closeOnEscape: true,
                resizable:false,
                height: 150,
                modal: true,
                buttons:{
                    Löschen:function(){
                       //do something
                    },
                    Abbrechen:function(){
                      //do something else
                    }
                }
    })

The Title is string so i can use ö for ö. but how can i do it for the button?

Upvotes: 0

Views: 884

Answers (2)

Rory McCrossan
Rory McCrossan

Reputation: 337656

Try this:

"Löschen": function(){
    //do something
},

Upvotes: 3

lanzz
lanzz

Reputation: 43178

Enclose it in quotes:

buttons: {
    'Löschen': function() { ... }
}

Upvotes: 3

Related Questions