+ 1

How can i change the color of a button or a div with the onclick function in JavaScript

4th Mar 2018, 1:46 PM
Ajibola Olamilekan
Ajibola Olamilekan - avatar
3 Antworten
4th Mar 2018, 2:16 PM
Bogdan Bryzh
Bogdan Bryzh - avatar
+ 2
I tried this but it did not work https://code.sololearn.com/Wp6A0q0yt9wf/?ref=app
4th Mar 2018, 2:02 PM
Ajibola Olamilekan
Ajibola Olamilekan - avatar
+ 2
@Ajibola Hey, you have put "mufunction" in onclick attribute but in the JS, you have defined myfunction()!
4th Mar 2018, 2:30 PM
Naveen Maurya
Naveen Maurya - avatar