我有一個微小的腳本我工作:)運行JavaScript點擊
的想法是,如果跨度標籤只是包含autocompleteitem
和不autocompleteitem autocompleteitemwithcontainer
然後它會顯示單詞hello
。現在它顯示hello
兩種:(
演示:https://jsfiddle.net/L33mqqtp/
$(document).ready(function() {
$(document).on('click','.autocompleteitem',function(){
$("div").show();
});
});
如何更新我的代碼要做到這一點
哇 - 驚人。謝謝,Ilya :-) – michaelmcgurk