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:
- function hotels()
- {
- $.post('reloads/sep_list_refresh_jquery_gallery.php', { city: document.form.city.value},function(output){$('#hotels').html(output).show();});
- }
This is the code I tried and didnt work:
- function hotels()
- {
- $.post('reloads/sep_list_refresh_jquery_gallery.php', { city: document.form.city.value},function(output){$('#hotels').html(output).show(1000);});
- }
Thank you