Skip to content
Advertisement

how do i implement two onclicks in a button?

so i need a button to change an image then it is clicked but to also change a certain text. to do so I require two onclick functions. how do I do this? this is my code so far.

JavaScript

so I can change the images when the buttons are clicked but I cant make the text change as well.

Advertisement

Answer

This will do the job.

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement