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

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -