jquery ui tabs dynamically added tab id -


i have page uses jquery ui tabs. in page, need add , remove tabs dynamically. functionality implemented. now, everytime add new tab, jquery generates id tab automatically. somethig ui-tabs-1, ui-tabs-3 etc. need know, there way can index of id. (the 1, 3 appended). because, need use id inside tab functioanlity , dynamic addition , deletion, cannit id of tab easily.

are looking fiddle ? hope helps

$(function () {     $("#tabs").tabs({         collapsible: true     }); });  $("#tabs ul li").on('click', function () {     var indx = $("li").index(this);     alert(indx); }); 

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 -