Pages

Monday, June 21, 2010

Add class on click, then remove when click another, and add to that.

Every time I start a fresh Drupal Project, I always need to use a Jquery to either add a class on click or remove the class on click. This was quite difficult for me to every time. This time i was customizing the FAQ module of Drupal, and i was retrieving the  data from the node_ revision table. As i want to make it look little jazzy and very attractive like moot tools. So i have used jqueryfor it. Here is the code :

No comments:

Post a Comment