Let\'s say I have a simple list:
1 2
Why change the style of the other? You may want to change the style of the clicked element.
If so, you can use jQuery for that
Example:
element 1 element 2 element 3 $('.notClicked').click(function() { $(this).addClass('active'); });