jQuery how to set first tab active?

后端 未结 4 1446
说谎
说谎 2021-01-21 19:56
 $( \'#xxx\' ).tabs({
select: function(event, ui) { 
var theSelectedTab2 = ui.index;

if (theSelectedTab2  == 0) {
$(\'ul li.ep_s1\').removeClass(\'ep_s1\').addClass(\'e         


        
4条回答
  •  囚心锁ツ
    2021-01-21 20:29

    Trigger a click event on the first tab after page load?

    Like $('first tab selector').click()

提交回复
热议问题