$('#tt').tabs({ onSelect: function(title,index){ // detect if the selected tab panel is what you want if (...){ // do something here } }});