To create a jQuery Tabs plug-in, the tabs plug-in jQuery UI is too complicated and the style is not easy to adjust.
Non-plug-in writing:
Var tabs = {
Init: function (){},
Hide: function (I) {display the first tab },
Show: function (I) {hide the tabs}
};
I don't know how to write the jQuery plug-in? This form: $ ('# tab'). tabs. init ()
Now I only know how to write a single function as follows:
(Function ($ ){
$. Fn. plugin = function (s ){
// Code...
};
}) (JQuery );
JQuery. fn. extend ({
});
$ ('# Tab'). tabs. init () // In your form, is tabs an object? JQuery object?
Tabs objects include init, hide, show... and other methods. Are these methods used to hide all tabs directly or a certain tab?
I don't want to develop plug-ins myself because of the complexity of the ui. I think the ui is very useful. If you want to change the style, use firebug debugging or read the manual on the official website.