I need to add custom css to jquery tabs when it is selected, how?

后端 未结 3 1137
我寻月下人不归
我寻月下人不归 2021-01-28 15:23

I need to modify the css of .ui-state-active , .ui-widget-content .ui-state-active to the following:

.ui-state-active , .ui-widget-content .ui-state-active {
            


        
3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-28 15:52

    You could put the code in the select event of the tab control

    $( "#tabs" ).tabs({
       select: function(event, ui) { 
         //ui.item has the current object for you.
       }
    });
    

    http://docs.jquery.com/UI/Tabs#event-select

提交回复
热议问题