How to change the background color of an element in Javascript

后端 未结 0 725
礼貌的吻别
礼貌的吻别 2021-01-30 07:31

I am trying to change the background of an element using Javascript.

$(".el")[0].style.background = "#ff9900";

This works fin

相关标签:
回答
  • 消灭零回复
提交回复
热议问题