How to change a color to a list item depending on the value of a multiple selected option?

前端 未结 0 464
萌比男神i
萌比男神i 2021-01-26 02:34

I have a multiple select tag with several options. Each option has a data-id attribute that contains a color for that option. I also have a list with items that I want to change

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