Hey coders, i would like to initialize a dialog box with a callback function for say a 'save' button but i want the callback to reside as a standalone function rather than defined inline using function(){....} the code snippet below highlights what I want to do.
$( "#dialog-form" ).dialog({
autoOpen: false,
height: 300,
width: 350,
modal: true,
buttons: {
"Save": saveAction()
...
function saveAction()
{
}
what is the proper syntax for the "Save": saveAction() line cause it is doesn't seem to work?
thanks