0

How can I change the content of a div when a button is clicked

14th Jul 2020, 11:32 AM
Fluidlearner
Fluidlearner - avatar
4 Réponses
+ 4
Add picture and make it visible/unvisible
14th Jul 2020, 12:09 PM
Oma Falk
Oma Falk - avatar
+ 2
https://code.sololearn.com/WaV9gPzbV3qJ/?ref=app check this for better understanding
14th Jul 2020, 11:52 AM
Sharique Khan
Sharique Khan - avatar
+ 1
An image
14th Jul 2020, 11:53 AM
Fluidlearner
Fluidlearner - avatar
+ 1
You can also do that “main.style.background = “url()”; with style.background! Edit: Now check the same code I provided I added background too
14th Jul 2020, 12:08 PM
Sharique Khan
Sharique Khan - avatar