开发者

I want to use .load() with query value, jquery

开发者 https://www.devze.com 2022-12-23 13:48 出处:网络
I want to be able to load t开发者_Python百科he feed value with a user id, but does not.The full url is

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

精彩评论

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