How can I implement in jQuery to call in the dialog “Ok” function the destroy method?
$('.dialog').dialog({
autoOpen: false,
width: 600,
buttons: {
"Ok": function() {
$(this).dialog("close");
},
"Cancel": function() {
$(this).dialog("close");
}
}
});
$('.dialog_link').click(function(){
$('.dialog').dialog('open');
return false;
});
Thanks for your help!
Here the solution
HTML:
JQuery:
Kind regards shub