How do I make jQuery UI tabs unclickable?
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
精彩评论