html - Highlight multiple div class with link -


hi everyone - after countless searching, i'm still not sure terminology i'm looking (it seems simple). it's been hard try , find progress... sorry have no code show @ point, still trying figure out best direction solution.

an example of i'm after can seen @ www.anishkapoor.com - i'm trying create similar navigation content catagorised colour, after clicking on particular nav link highlights (changes colour) of content same class id. when new nav link selected current highlighted content switch new class id. i'm trying write code can applied cms. thank time , hope i've made sense.

it works, it's pretty basic attempt. jsfiddle.net/bh6pg/1
i'm going apply wordpress if has better solution cms, please inform :-)

 $(".oranges").click(function () {   $(".orange").addclass("orange_highlight");   $('.apple').removeclass("apple_highlight");   $('.banana').removeclass("banana_highlight"); }); 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -