+ 1
Help out with JavaScript code and a css question
There are comments with questions in the css and js sections https://code.sololearn.com/WWbxBW01x7I7/?ref=app
15 Answers
+ 4
Line 11 in HTML.
You did not call your "funct" function properly, you missed those ()
Fix
<div id="jj" onmouseover="func()" onmouseout="fun()" onclick="funct()">
+ 2
thatkidayo check my code, it changes color everytime you click.
+ 1
đ#H P 22âąđ the background color isnt changing
+ 1
thatkidayo please more elaborate on which element colour you are talking about and how many times you want to change it and when and how.
0
What's the desired output that you want but you are not getting?
0
the color only changes once Maninder $ingh
0
the background color....the button is meant to be a background color changer
0
thank you very much RDC
0
Amine
0
I just have one theory where im not so sure of. So you did that the string generate six times a new color hexamedical value. My theory is if you click again wouldnt it ADD a new number to the string instead of REPLACING it. Im not sure im new with html;)
0
Oog its already fixed i thought u ment that there will be a new color everytime u click the button