I know this doesn’t work:
$(‘#section’).html($(data), function()
{
$(‘#section’).fadeIn();
});
How would I go on writing it? It should be simply, but I’ve been away from jQuery for too long.
Thanks!
Do you want to call fadeIn after the html method is completed? You can simply do this,
Above works because unlike the ‘animate’ methods, html method is synchronous. fadeIn method will be called only after html method has finished executing.