I think a simple fade in problem
Hi I'm very new to jQuery and am having a little problem trying to fade in a div after an ajax request. I can get it to fade out using fadeTo but to fade in has me stuck. Ay help would be great cheers
-
$(document).ready(function()
{
$('#content').load('./require/ajax_response_main.php');
$('#nav a').click(function()
{
var content_show = $(this).attr("title");
$.ajax(
{
method: "get",url: "./require/ajax_response_main.php",data: "page="+content_show,
beforeSend: function(){$("#loading").show("fast");},
complete: function(){ $("#loading").hide("fast");},
success: function(html)
{
$("#content").fadeIn("slow"); // << Is this line that i thought should fade in my div?
$("#content").html(html);
}
});
});
});
Thanks[/code]