user5863306
user5863306

Reputation:

How to fadeIn data returned from next page?

How to fadeIn data that are returned from next page using php
I have used following code:

$('#myHref').change(function(){
   var value = $('#myHref').val();
   $.get('get_projectName.php',{id:value},function(data)
   {  
      $('#projectDetail').html(data);
   }); 
});

Upvotes: 1

Views: 29

Answers (1)

Zakaria Acharki
Zakaria Acharki

Reputation: 67525

The fadeIn() works on hidden elements so you could hide your projectDetail using hide() then fadein will works :

$('#projectDetail').hide().html(data).fadeIn('slow');

Hope this helps.

Upvotes: 2

Related Questions