slj90 Posted December 4, 2014 Share Posted December 4, 2014 window.setInterval(function(){ s="<?= $lastid ?>"; $.post('../action/updatestream.php',{statusid:s.val()},function(e){ alert(e) }); }, 10000); Why isn't it working? Thanks, Quote Link to comment Share on other sites More sharing options...
Solution requinix Posted December 5, 2014 Solution Share Posted December 5, 2014 s is a string, not a jQuery object. Don't .val() it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.