jquery ajax modify data response
$.ajax({
url: 'http://localhost/apsd4/core/main_quota.html',
success: function(data) {
$('#tabs-2').html(r);
$('#tabs-2 #nini'开发者_如何学Python).remove();
}
});
I would like to change data response before echo data Stages:
- remove '#tabs-2 #nini'
- html()
I think as what I understand on your problem, you wanted to improve your $.ajax
$.ajax({ type: "POST", url: "http://localhost/apsd4/core/main_quota.html", success: function(result) { $('#tabs-2').html(data).find('#nini').remove(); // do some code here } });
精彩评论