How to: Add/Remove Class on mouseOver/mouseOut - JQuery .hover?

前端 未结 4 1399
自闭症患者
自闭症患者 2020-12-05 17:57

Looking to change the border color on a box..

..when the user mouses over/out..

Here\'s the attempted code.. Needs Work!

JQuery:

<         


        
4条回答
  •  佛祖请我去吃肉
    2020-12-05 18:31

    Your selector is missing a . and though you say you want to change the border-color - you're adding and removing a class that sets the background-color

提交回复
热议问题