View page by html(output).show() with some fade effect

View page by html(output).show() with some fade effect

Hello;

I use the code below to load a page in a div. I want to add some cool fade effect to it, but it ignores it and just opens it regardless of the effect. Here is the code:
  1.  function hotels()
  2.         {
  3.             $.post('reloads/sep_list_refresh_jquery_gallery.php', { city: document.form.city.value},function(output){$('#hotels').html(output).show();});
  4.         }
This is the code I tried and didnt work:
  1. function hotels()
  2.         {
  3.             $.post('reloads/sep_list_refresh_jquery_gallery.php', { city: document.form.city.value},function(output){$('#hotels').html(output).show(1000);});
  4.         }
Thank you




    • Topic Participants

    • pmdg3