+ 1

What is the easiest way to change the button color when you click on it (Blue button -onclick-red button)

for Html

11th Oct 2017, 10:29 AM
Magnetic Muffin
Magnetic Muffin - avatar
2 Antworten
+ 2
<button style="background:blue" onclick="style.background='red'">Change</button>
11th Oct 2017, 10:48 AM
Calviղ
Calviղ - avatar
+ 2
Calvin bro , you are the beeeessst person , I had googled alot but it all had CSS , I am just starting to learn JS and you made things very very easy thanksssss 😀😀😀😀😀😀
11th Oct 2017, 10:51 AM
Magnetic Muffin
Magnetic Muffin - avatar