jQuery's appendTo Creates Duplicate List Items in Mobile Browser -
i have following simple code using jquery append dynamically created items list:
var keywords = ["word1", "word2", "word3", ...]; $.each(keywords, function(index, keyword) { var searchresulthtml = "<li id=" + index + ">" + search(keyword) + "</li>"; $(searchresulthtml).appendto("#search_result_list"); });
above codes work fine in major desktop browsers. however, in mobile browsers ipad/iphone, generated list contains duplicated items. go wrong? many thanks!
Comments
Post a Comment