1
아래 아래는 내가 제안 목록에서 굵은되기 위해 검색 문자를 만들기 위해 추가 한 코드입니다 기본 JQuery와 자동 완성 https://jqueryui.com/autocomplete/제거 JQuery와 자동 완성 안녕 조명
에 대한 링크입니다.
$.ui.autocomplete.prototype._renderItem = function (ul, item) {
item.label = item.label.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + $.ui.autocomplete.escapeRegex(this.term) + ")(?![^<>]*>)(?![^&;]+;)", "gi"), "<strong>$1</strong>");
return $("<li></li>")
.data("item.autocomplete", item)
.append("<a>" + item.label + "</a>")
.appendTo(ul);
};
그러나 마우스를 올리면 가져온 텍스트가 파란색으로 켜집니다. 하지만 그 빛을 제거하고 싶습니다. 좋습니다.
감사
당신이ui-menu-item-wrapper
에 CSS를 적용 할 필요가