+ 8

JavaScript visibility[solved]

How can i set the visibility of an element with JavaScript , from hidden to visible by pressing a button.

27th Dec 2018, 2:09 PM
šŸ‡ Alex Tușinean šŸ’œ
šŸ‡ Alex Tușinean šŸ’œ - avatar
9 Answers
+ 7
It may work , but i didn't learned about addEventListener yet , and i don't know how to use it.
27th Dec 2018, 2:20 PM
šŸ‡ Alex Tușinean šŸ’œ
šŸ‡ Alex Tușinean šŸ’œ - avatar
+ 7
Satnam Singh yes , but in js
27th Dec 2018, 3:02 PM
šŸ‡ Alex Tușinean šŸ’œ
šŸ‡ Alex Tușinean šŸ’œ - avatar
+ 6
Use element.style.opacity -= 0.1 Within an interval within click event button.addEventListner("click", function() { setInterval(function() { element.style.opacity -= 0.1; }); }); Good luckšŸŒ¹
27th Dec 2018, 2:15 PM
Ahlin Chan
Ahlin Chan - avatar
27th Dec 2018, 3:40 PM
Ahlin Chan
Ahlin Chan - avatar
+ 1
You got it ALEX
2nd Jan 2019, 3:10 AM
Bella Riddle
Bella Riddle - avatar
0
Solved xD .... man I didnt see the solved part
3rd Jan 2019, 2:04 AM
Edwing123
Edwing123 - avatar
0
xD well at least I learned something New :)
3rd Jan 2019, 2:04 AM
Edwing123
Edwing123 - avatar