Menu icon Foundation
Modal Confirm Callback

How do I go about having a callback, with what was pressed within a callback modal.

Trying to make a confirm callback modal that can be reused. So I have too buttons, Confirm, Cancel.

This is called by a click of a foundation-icon. I would like when either button is pressed on the modal, it closes the modal and continues the function flow.

$('#uDelete').click(function() {
    $('#confirmModal').foundation('reveal', 'open', {
        // Waiting for what comes back
    });
    

})
            

         

modalcallback

How do I go about having a callback, with what was pressed within a callback modal.

Trying to make a confirm callback modal that can be reused. So I have too buttons, Confirm, Cancel.

This is called by a click of a foundation-icon. I would like when either button is pressed on the modal, it closes the modal and continues the function flow.

$('#uDelete').click(function() {
    $('#confirmModal').foundation('reveal', 'open', {
        // Waiting for what comes back
    });
    

})
            

         

This post has been closed. No new replies can be added.