开发者

How do I make jQuery UI tabs unclickable?

开发者 https://www.devze.com 2023-04-06 05:15 出处:网络
I am using jQuery UI tabs to render tabs. I need to make the tabs unclickable so that when a ta开发者_开发百科b is clicked, nothing happens. How can I do that?you can disable the tabs

I am using jQuery UI tabs to render tabs. I need to make the tabs unclickable so that when a ta开发者_开发百科b is clicked, nothing happens. How can I do that?


you can disable the tabs

 //getter
    var disabled = $( ".selector" ).tabs( "option", "disabled" );
    //setter
    $( ".selector" ).tabs( "option", "disabled", [1, 2] );

http://docs.jquery.com/UI/Tabs

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号