Quantcast
Channel: User JohnP - Stack Overflow
Viewing all articles
Browse latest Browse all 37

Answer by JohnP for jQuery does not show content with setTimeout

$
0
0

You need to wrap your jQuery call in a function

$.ajax({    url: 'content.php',    data: '&go='+ tab,    success: function (data) {        setTimeout(pencil, 3250); //pass in a function reference preferably.         setTimeout(function(){$("#content").html(data).fadeIn()}, 5000); //wrap it in a function    }});

Viewing all articles
Browse latest Browse all 37

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>