1$(document).ready(function() {
2 $("#success-alert").hide();
3 $("#myWish").click(function showAlert() {
4 $("#success-alert").fadeTo(2000, 500).slideUp(500, function() {
5 $("#success-alert").slideUp(500);
6 });
7 });
8});
1$("#success-alert").fadeTo(2000, 500).slideUp(500, function(){
2 $("#success-alert").slideUp(500);
3});
4