Git Product home page Git Product logo

jquery-tools's People

Contributors

clamothe avatar merbjedi avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mixr

jquery-tools's Issues

Multiple tabs selected when using numbered tab hashes with tabs.history.

Let's say I have 11 tabs and I'm using the history plugin.

<a href="#tab1">..</a> 
<a href="#tab2">..</a> 
... 
<a href="#tab11">..</a> 

When I click the 1st tab, both the 11th tab and the 1st tab will be marked active (although only the first pane is displayed).

Line 118 of tools.tabs.js:
tab = tabs.filter("[href*=" + i.replace("#", "") + "]");

The href*= is matching both tab1 and tab11, because tab11 includes tab1.

A solution to this would be to use href$= instead of href*=

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.