开发者

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 []...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜