Build A Simple jQuery Tabbing System

preview_player
Показать описание

Official site

Twitter
Рекомендации по теме
Комментарии
Автор

You sound a bit tired. Have some tea and enjoy a good movie. You deserve it!

theswedishshemale
Автор

Instead of typing multiple .parent().parent().parent(), you can pass a selector as a parameter. So you could've typed
tabs = that.parent('div.tabs')
instead.

williamboman
Автор

What about a beautiful url using history.js with the tabbing system as if it was ajax?

danielcreations
Автор

Thanks for nice tutorial. Can I use same js code of tab system for wordpress? I tried but many problem occured like -- invalid function $('.tabs >ul li a').on('click', function()), also not show console.log('test') result in browser's inspect element console tab Thanks to advise.

MusfequrRahmanLiton
Автор

i have error. can you help me with this.

"event.returnValue is deprecated. Please use the standard event.preventDefault() instead."  

it was said on the consele menu on inspect element.
Please help me . thanks.

krayziekyle
Автор

What about the code snippets? So one can compare?! Barely got it working, finding out that the custom js has to be imported after the jquery (did you mention?)
Please distribute code in the future, so ppl can compare to what actually went wrong.

thomaslange
Автор

why not simply use .click() in stead of .on('click')?

paulthegeek
Автор

yes you sound a bit sick, have a break man !  take it easy .

peace
Автор

This script horrible and to complicated. In jQuery you can write this much easier.

welcome to shbcf.ru