1
这是我的代码删除li元素使用ajax函数,但它不会给任何输出。使用jQuery的ajax删除功能,但没有运行
jQuery.ajax({
type: 'DELETE',
url: 'http://example.com', /* url */
dataType: 'xml',
complete: function(response, statusText){
if (statusText == 'success') {
jQuery('li.product input[value="B0070X7W9M"]').parent().remove();
/* need to delete li element */
}
}
});
请帮我我是新的jquery ajax。