Home >Backend Development >PHP Tutorial >jquery load encounters loop problem

jquery load encounters loop problem

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-10-10 11:39:151030browse

Because of some requirements
I need to put the following jquery into the loop

<code>$(document).ready(function(){ 
        get_total<? echo $rs['buy_id'];?>();
    });
    function get_total<? echo $rs['buy_id'];?>(){
        $("#data_total<? echo $rs['buy_id'];?>").load("get_total?id=<? echo $rs['buy_id'];?>");
    }
    </code>

Because in order to get $rs['buy_id']
I would like to ask how to get each $rs['buy_id'] without putting it in a while?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn