我有一个 ajax 调用,如下所示
$("#createnewlist").live('click', function (event) {
$("#ajax-loading-01").show();
var createlink = $(this);
var accountid = createlink.parent().find("input:hidden[name='accountid']").val();
var listname = createlink.parent().find("input[name='listname']").val();
//create an ajaxmanager named cacheQueue
var ajaxManager = $.manageAjax.create('cacheQueue', {
queue: true,
cacheResponse: false
});
ajaxManager.add(({
type: 'GET', url: '/ajaxhandler',
data: { createwishlist: "true", accountid: accountid, listname: listname }
, success: function (data) {
alert(data)
$(".grid03").html($(data).find(".grid03").html());
}
}));
});
成功我在警报(数据)行中获得了全部数据
<!-- ActionHandler IS included -->
<p class="favtext">for at folde den ud...</p>
<div class="query-input lynlistesearcher">
<label>Søg i dine Lynlister</label>
<input type="text" name="textbox" id="txtesearch" />
</div>
<div class="grid03">
<ul>
<li>
<div class="head-text">
<strong data-id="149658491" class="149658491"></strong>
<a rel="149658491" class="deletelistclass" rev="74123311" href="#">
<translate key="delete-list">Slet liste</translate>
</a>
</div>
</li>
</ul>
</div>
但是当我尝试从这些数据中获取 html
$(data).find(".grid03").html()
它给出了空值。任何人都可以提供任何线索吗?