/    Sign up×
Community /Pin to ProfileBookmark

TAB wont remian on the last tab ticked

Gurus,

need your help in using TAB.

used a tab to present different categories. These categories contains list of materials per category option. The user runs through these tabs and selects which items he wants. My problem is, whenever he goes to example Tab2 and checks on an a certain material, the page reloads and goes back to Tab1 which should not be. You might wonder why the page reloaded, this is because i have items with subitems that when checked it runs a server script retreiving the data from my SQL table. Hope you get it and help me.. Thanks in advance!!!

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@FangOct 19.2004 — Set the [I]class[/I] of the selected tab server side.
Copy linkTweet thisAlerts:
@maya_bluauthorOct 20.2004 — hi fang,

sorry, but can you elaborate more, i'm new in this field. Thanks.
Copy linkTweet thisAlerts:
@FangOct 20.2004 — I am assuming your tags are shown selected by changing it's class.

Server side, or client side you determine which page is to be loaded, then change the class of the relevant tab link.
×

Success!

Help @maya_blu spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...