Hi, i want to give a name and value to the default button in UI dialog. how can i do that ? i would like to give to submit button a value and name!
$("#dialog").dialog({
bgiframe: true,
autoOpen: false,
height: 150,
width: 600,
modal: true,
buttons: {
Submit: function() {
document.getElementById('form').submit();
$(this).dialog('close');
},
Cancel: function() {
$(this).dialog('close');
}
}
});
$('#beleg_sichern').click(function() {
$('#dialog').dialog('open');
});