javascript - Dynamically created tabs getting error: Uncaught Error: jQuery UI Tabs: Mismatching fragment identifier. at Function.error -


dynamically created tabs, getting kind of error, don't know went wrong, , tabindex -1 if i check in developer console.

<div id="tabdiv">     <ul id="tabs" class="nav-tabs">         <li class="active"> <a href="#1" onclick="getlist();" data-toggle="tab">all</a> </li>     </ul> </div> <script>     function addtabs(result) {         var unit = _.map(result, 'unit');         unit = _.uniq(unit);         var tabs = $("#tabdiv").tabs();         (var = 0; < unit.length; i++) {             var ul = tabs.find("ul");             var current_idx = ul.find("li").length + 2; // correct index id             $("<li><a href=#" + current_idx + " tabindex=" + ul.find("li").length + " onclick=getlist(); data-toggle=tab>" + unit[i] + "</a></li>").appendto(ul);             onclick = "getlist('wip_production');"             tabs.tabs("refresh")         }         $("</ul>").appendto(tabs);     } </script> 


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -