0

.php 文件:

if (mysql_num_rows($result) > 0) {
// output data of each row
while($row = mysql_fetch_assoc($result)) {
     $orgID=$row["InstancesID"];
    echo "description: " . $row["describtion"]. "<br><br>"." - Type: " . $row["type"]. "<br><br>". "-Amount: " . $row["amount"]. "<br><br>";
    echo"<input type='button'  onclick=SendID($orgID) value='updateee'/> <br><br>";
}

ajax函数:

$(document).ready(function(){
$("#show").click(function(){


    $.ajax({url: "http://127.0.0.1/testupdate.php?f=ShowAllInstances",

            success: function(result){
            //alert(result);
       $("#divshow").html(result);
    }});
});
});

这将在 html 页面中显示返回的数据我想在 jquery 移动页面中显示它们。请有任何帮助

4

0 回答 0