Why doesn’t jquery fadeIn() work with .html()?

No fadeIn is done because the #message element is visible, hide it, add the content and fade it in:

$('#message').hide().html("You clicked on a checkbox.").fadeIn('slow');

Leave a Comment