i have jquery tab in my project, and add tab from remote, i want to reload a tab when a button clicked, i successed except the reload times,following is my code:
main_tab=$('#outer_center').tabs();
main_tab.tabs("load", get_target_tab_index(title));
function get_target_tab_index(title){
return $('#tab_nav>li').index($("#tab_nav>li>a>span:(0):econtains("+title+")").parent().parent().get(0));
}
first click will reload tab once, second will reload tab two times, thirth will reload tab six times...
anyone can fix this?
thanks a lot.