HOW TO HOOK UP AN INPUT TO THE BACKGROUND COLOR WITH JAVASCRIPT | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

HOW TO HOOK UP AN INPUT TO THE BACKGROUND COLOR WITH JAVASCRIPT

YELLING https://code.sololearn.com/WgVu2LxTHlNG/?ref=app

20th Mar 2019, 6:54 PM
Gavin Macpherson
Gavin Macpherson - avatar
5 Answers
20th Mar 2019, 7:23 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 4
Shudarshan Rai 👑 Doesn't work for me 😕😑 The submit button only changes the background at the very first time, after that it randomly works or not? What's wrong with my mobile? The code should work. 1. Shouldn't it be "0-255" instead of "1-225" 2. and "backgroundColor" instead of "background"
21st Mar 2019, 8:29 AM
Pete Wright
Pete Wright - avatar
+ 4
I put a reset button on mine Peter Wright
21st Mar 2019, 10:28 AM
Gavin Macpherson
Gavin Macpherson - avatar
+ 4
And it isnt rgb it is hex. ODLNT told me
21st Mar 2019, 10:29 AM
Gavin Macpherson
Gavin Macpherson - avatar
21st Mar 2019, 10:32 AM
Gavin Macpherson
Gavin Macpherson - avatar