I want to use .load() with query value, jquery
I want to be able to load t开发者_Python百科he feed value with a user id, but does not. The full url is
http://localhost/feed/feeds.php/?userid=xxyy
var f = <? echo $_POST['xy']; ?>
$('#feed').bind('click',function(){
$('#feed1').load("http://localhost/feed/feeds.php/",{'userid':[f]);
});
Can I use the url directly>
Either way I the page does not load on clicking <div id="feed"></div>
there's a }
missing:
.load("http://localhost/feed/feeds.php/",{ 'userid': [f] });
EDIT #1
and i don't think you need the []
...
精彩评论