jQuery移动弹出窗口未正确显示
我在显示jquery mobile弹出窗口时遇到问题。这是我从servlet返回的弹出窗口代码jQuery移动弹出窗口未正确显示,jquery,ajax,mobile,Jquery,Ajax,Mobile,我在显示jquery mobile弹出窗口时遇到问题。这是我从servlet返回的弹出窗口代码 <a href='#popupBasic_1' data-rel='popup' style='text-decoration: none; background-color: red; display: block; width: 40px; height: 40px; text-align: center; position: absolute; font-size: 13
<a href='#popupBasic_1' data-rel='popup'
style='text-decoration: none; background-color: red; display: block; width: 40px; height: 40px; text-align: center; position: absolute; font-size: 13px; font-weight: bold; color: white'>bill</a>
<div data-role='popup' id='popupBasic_1'>
<div style='height: 200px; width: 300px'>
<div
style='text-decoration: none; background-color: red; display: block; width: 40px; height: 40px; text-align: center; font-size: 13px; font-weight: bold; color: white'>bill</div>
<div
style='text-decoration: none; background-color: blue; display: block; width: 40px; height: 40px; text-align: center; font-size: 13px; font-weight: bold; color: white'>bob</div>
</div>
</div>
我已经尝试了以上两种情况,它们在页面的弹出窗口中显示这两个元素。如果我使用这个弹出代码并手动将其放置在div标记中,它就会工作
感谢您的帮助。尝试以下方法:
$("#users").html(result).trigger("create");
晚上我会试试这个。谢谢你的回复,我会通知你的。
$.get(url).success(function(result) {
//document.getElementById("users").innerHTML = result;
$("#users").html("<code>" + result + "</code>");
$("#users").html(result).trigger("create");