How to use Zurb Foundation reveal with open, opened, close, closed callback functions?

后端 未结 9 553
执念已碎
执念已碎 2021-02-05 01:41

On zurb foundation\'s website at http://foundation.zurb.com/docs/reveal.php they listed some Options including

open: callback function that triggers \'before\' the

9条回答
  •  灰色年华
    2021-02-05 02:09

    Like meatrobot said, to get this working you want to bind to the modal with the action you are targetting. I got this to work:

    $('#myModal').bind('closed', function() {
        console.log("myModal closed!");
    });
    

提交回复
热议问题