I'm doing a simple slideUp animation on an object. I want to add attribute tag to the the element after animation completes. How can i get this to work ?
if($(this).is(':visible')) {
if(config.animate=='true')
$(this).slideUp(options.animationTime); //After animation ends do $(this).attr('shown','true');
else
$(this).hide();
}
$(this).slideUp(options.animationTime, function() {
$(this).attr('shown','true');
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With