How to know if a tab is enabled on jQuery tabs?

前端 未结 2 887
被撕碎了的回忆
被撕碎了的回忆 2021-01-13 20:05

I can\'t find in the API of jQuery UI Tabs ( http://docs.jquery.com/UI/Tabs) a method to know if a certain tab is enabled or not, I need that because in an event of my appli

2条回答
  •  孤城傲影
    2021-01-13 20:51

    You're almost there (it's on your link): disabled

    //getter
    var disabled = $( ".selector" ).tabs( "option", "disabled" );
    //setter
    $( ".selector" ).tabs( "option", "disabled", true );
    

提交回复
热议问题