Hi, coders, I would like to initialize a dialog box with a callback function, for example, for the "Save" button, but I want the callback to be as a standalone function, and not defined inline using the function () {....} The code snippet below emphasizes what I want to do.
$( "#dialog-form" ).dialog({
autoOpen: false,
height: 300,
width: 350,
modal: true,
buttons: {
"Save": saveAction()
...
function saveAction()
{
}
What is the correct syntax for the "Save" line: saveAction () because it does not work?
thank
source
share