Click here to Skip to main content
15,895,740 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i'm new in jquery how to select a active class if i'm clicking a tag

for example

home
about us


if i click about us link automatic active class move
Posted
Comments
Sergey Alexandrovich Kryukov 3-Sep-14 12:13pm    
Not clear at all. 1) you are not clicking "tags"; 2) what do you want to achieve, on clicking of what?
—SA

1 solution

Please see my comment to the question. It is not clear, but it's very likely that you need this:
http://api.jquery.com/addClass/[^],
http://api.jquery.com/removeClass/[^],
or http://api.jquery.com/toggleClass/[^].

See also: http://api.jquery.com/category/css[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900