使用 jquery-mobile 在弹出窗口中附加 AJAX 响应


append ajax response on popup window using jquery-mobile

>我正在开发一个应用程序。 因为我想在 使用jQuery移动版的弹出窗口。那么如何附加它.我正在发布一些
几个代码.我想在 D2 ID 上附加 id 的响应,该 ID 是标记的。 我的 ajax 代码

  $("#b1").click(function(){
    $.ajax({
    type:"post",
    url:"http://localhost/register.php",
    data: $("#frm").serialize(),
    success:function(response)
        {
        $("#d2").html(response);

         },
         error:function(response)
         {
                     }
     });
   }); 

像这样:

$("#d2").html(response.responseText);

参见:http://www.tutorialspoint.com/prototype/prototype_ajax_response.htm