http://www.ericmmartin.com/projects/simplemodal/
There's two examples near the bottom of the page that show how to either do open or closing animations.
I'm pretty new to jquery. How can I declare both onOpen and onClose? (I've only been able to get one to work at a time.
jQuery(function ($) {
$('a.basic').click(function (e) {
e.preventDefault();
$('#basic-modal-content').modal(
{
onClose: function (dialog)
{
dialog.container.fadeOut('slow', function () {
});
}
}
);
});
});
Thanks for any help you can provide.