SimpleModal and Jquery (How to do open and closing animations)?
Posted
by matthewsteiner
on Stack Overflow
See other posts from Stack Overflow
or by matthewsteiner
Published on 2010-03-22T17:30:32Z
Indexed on
2010/03/22
17:41 UTC
Read the original article
Hit count: 281
simplemodal
|jQuery
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.
© Stack Overflow or respective owner