这是我的jquery:
$.ajax({
url: 'fuzzySearch',
async: false,
type: 'POST',
dataType: 'json',
data: {
orderid: orderid
},
success: function(data) {
var datas = data.msg;
$('#showMessage').text(datas);
var list = data.lists;
for (var num = 0; num < list.length; num++) {
var obj = list[num];
$('#SusakeFzzySearch').append("<li value ='" + obj.ordercount + "' style='list-style-type:none' id='liid'>" + obj.ordercount + "</li>");
}
},
error: function(data) {
var datas = data.msg;
$('#showMessage').text(datas);
}
});
&#13;
我想点击li标签,搜索文字显示li标签的值,li标签隐藏。