How should I write the source code to change the color of the h1 text to the color selected in the pull-down menu? ??
Answer # 1
Then I will answer.
I think this will work.
Change color in the header
onclick is changeColor
Pay attention to the acronym for color
document.getElementById ("textcolor"). value
You can get the value in the select tag with.
How is it?
- vuejs i want to change the color of the selected button
- dart - i want to change the border color when selected with flutter's filter chip
- button color change in android studio
- c # - i want to change some characters with html color in the message displayed character by character in unity!
- ios - does not change when uibutton is selected
- i want to change the color of the candidate selected by completion input in visual studio code