I have two tabs and configured usign jQuery UI.
ul class=\"tabs\" li tabone li tabtwo ul
dynamically from C# code behind I will hide
I found this works more easily than getting an index. For my needs, I am selecting a tab based off a url hash
var target = window.location.hash.replace(/#/,'#tab-'); if (target) { jQuery('a[href='+target+']').click().parent().trigger('keydown'); }