Change CSS Link Property onClick with Javascript/JQuery?

后端 未结 7 2106
长情又很酷
长情又很酷 2021-01-01 04:34

So for example i have two links:

Link 1
Link 2
<
7条回答
  •  北海茫月
    2021-01-01 05:14

    giving the elements css classes would be a better option. You could do it by using the className property on the object. in doCOlorChange you could write this.className ="newclassName";

提交回复
热议问题