var xhr; $("#districtName").bind("input propertychange keyup" , function () { var keyword = $(this).val() if(xhr){ xhr.abort() } if(keyword == ""){ $('#districtList').empty() return } xhr = $.ajax({ url:'../auto/district', data:{keywords : keyword, cityName:$("#input_city").text(),max:20}, dataType:'json', success:function (data){ $('#searchHistoryDiv').hide(); if(data.length == 0){ $("#notFound").show() $('#districtList').empty(); }else{ $("#notFound").hide() var html = $('