Remove CSS from a Div using JQuery

Posted by Aruna on Stack Overflow See other posts from Stack Overflow or by Aruna
Published on 2009-06-05T09:34:07Z Indexed on 2010/04/10 23:03 UTC
Read the original article Hit count: 120

Filed under:
|

Hi, I'm new to JQuery. In my App I have the following:

$("#displayPanel div").live("click", function(){
  $(this).css({'background-color' : 'pink', 'font-weight' : 'bolder'});
});

When I click on a Div, the color of that Div is changed. Within that Click function I have some functionalities to do. After all that I want to remove the applied Css from the Div. How could I do it in JQuery?

© Stack Overflow or respective owner

Related posts about css

Related posts about jQuery