I am trying to use this:
$('#delete').live('click',function(){ var result; bootbox.confirm("Are you sure?", function(response){ result=response; }); alert(result); return result; });
But when the button is pressed:
A warning is displayed first, and only after that the boot box shows a confirmation dialog.
I want to return the answer, but if I do it from the inside, it does not work, because it returns the answer from the callback, but not $ ('# devicedelete'). live ('click', function () {});
Btw I am trying to submit a form based on the answer. Therefore, if I return the `` form '' will be submitted, otherwise, if it returns 'false', the form will not be submitted.
Please check this: http://pastebin.com/9H3mxE9Y
I have one big table with flags for each row, users select the flags and click on any of the "delete", "copy" buttons, etc. and the form must be submitted.
thanks
Pruthvi Raj Nadimpalli
source share