Reputation: 1404
this is my snippet code:
http://jsfiddle.net/STqCF/115/
I need the text turns red , with font-weight bold when i click over the link
How to do it with jQuery?
Upvotes: 0
Views: 672
Reputation: 5664
Fixed your issue here, One line of fix and css added :
http://jsfiddle.net/STqCF/120/
Upvotes: 1
Reputation: 2343
You can add a css class like this:
.test a
{
font-weight:bold;
color:Red;
}
And then add this to the 'show hide' binding:
$('.accordion').on('show hide', function(e){
$(e.target).siblings('.accordion-heading').find('.accordion-toggle i').toggleClass('icon-arrow-down icon-arrow-up', 200);
$(this).toggleClass('test');
});
Upvotes: 0