Change CSS rule in class using JQuery

前端 未结 8 1345
我在风中等你
我在风中等你 2020-12-05 04:40

I have a class in CSS

.Foo
{
  width:20px;
}

Using Jquery I would like to do something similar to this on an event:

$(\".Fo         


        
8条回答
  •  攒了一身酷
    2020-12-05 05:43

    I got thsi example in CSS api help in JQuery API.

    this worked for me : http://jsfiddle.net/LHwL2/

    for complete help read the css api at http://api.jquery.com/css/

提交回复
热议问题