Tabslet | Yet another jQuery plugin for tabs lightweight | Plugin library
kandi X-RAY | Tabslet Summary
kandi X-RAY | Tabslet Summary
Yet another jQuery plugin for tabs, lightweight, easy to use and with some extra features.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- find the link status
- remove if one
- draws an element
- the main function
- Sort alphabetically
- step 2 .
- Deactivates an object
- Helper function for inputs
- find next sibling nodes
- Check if a element is bg
Tabslet Key Features
Tabslet Examples and Code Snippets
Community Discussions
Trending Discussions on Tabslet
QUESTION
I'm wanting to link to a certain tab (Portfolio Tab) on a page from the main menu of a website, so when clicked it goes to that page with that portfolio tab open.
So far I've come up with this (using jQuery Tabslet) which works when not on the same page, but doesn't work if the user happens to be on the same page as the tabs, and so does nothing.
The link I use in the main menu is /about/#tab-3 which is doing the job of going to the about page with the portfolio tab open.
I thought I may need to trigger a page refresh when on the same page? And perhaps remove the #tab-3 from the url too.
Not being a jQuery expert, I unfortunately just don't know.
Here is the code so far
Thanks in advance.
...ANSWER
Answered 2018-Sep-03 at 02:14Advise: Always mention a reference to the plugin you use. I assume here you talk about this one.
This plugin acts on tab click only.
So when using a window hash
in a link from another page like you do, you have to "simulate" a click on the tab.
So you will use an attribute selector to find the anchor having a href
corresponding to the hash...
And click it.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Tabslet
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page