Using开发者_JAVA技巧 this script to send id to file.php which queries database and returns output in #DIV,
function recp(id + page) {
 $('#DIV').load('file.php?id=' + id + '& page=' + page);
}
works fine with just (id) but no luck with 2 variables. Checked on the appropriate sites without any result.
How would I also configure my Onclick=recp('$id ...')
Help much appreciated!
There is a space in your query string. It should be:
$('#DIV').load('file.php?id=' + id + '&page=' + page);
It is much neater to pass an object as second [data] parameter:
$('#DIV').load('file.php', {id: id, page: page});
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论