[jQuery] Changing Class using Jquery

2008-12-04 Thread WebNot
Kindly help!!! I am in a situation where I have to develop a news website, and my client wants me to display three stories from each category rest all should be hidden by default and when a user wants to view more stories he can click "add a story" the next story with class blocked should get vis

[jQuery] changing class

2007-08-21 Thread [EMAIL PROTECTED]
hi i'm trying to change the class of a label and i'm using this: $('label').click(function(){ $(this).toggleClass('pop').toggleClass('tart'); return false; }); initially the label class is set to 'pop'. when the label is clicked it toggles pop off and tart on, but then it run

[jQuery] changing class

2007-08-16 Thread bwdev
I have the following code. Basically, when the home_sel anchor is clicked, I want to change the class to "home select" and have all other li elements have select removed if they have it turned on...I'm having problems getting this to work properly in jQuery. How can I do this? Thanks!

[jQuery] Changing class on a preceding element by click link in another div

2007-05-25 Thread [EMAIL PROTECTED]
I'm trying to have a "close" link in a div that is expanded by click on an h3 that is the toggler. The trick is, I need that close click to then change the class of the h3 that preceeds it, not all h3s on the page. Title Content Close So far my script looks like this: $(func