I am building a \"check-out\" like interaction with jQuery UI tabs. This means that the click of a button on the first tab will deactivate the first tab and move to the next
$(function() { $( "#tabs" ).tabs({ activate: function(event ,ui){ //console.log(event); //alert( ui.newTab.index()); //alert( ui.newTab.attr('li',"innerHTML")[0].getElementsByTagName("a")[0].innerHTML); alert( ui.newTab[0].getElementsByTagName("a")[0].innerHTML); //alert( this.text); } }); });