+ 2

I need help please,i want change the number 42 but my code is wrong, my inglish not is very good 😅

https://code.sololearn.com/Wl75wJyCn9i0/?ref=app

19th Jun 2020, 6:50 PM
Matheus S. Candido
Matheus S. Candido - avatar
8 Respostas
+ 4
https://code.sololearn.com/Wb5gs9sPD6zd/?ref=app
19th Jun 2020, 9:09 PM
Emanuel Maliaño
Emanuel Maliaño - avatar
+ 3
I don't know why the js code doesn't work very well in his tab so I put it on the html
19th Jun 2020, 9:15 PM
Emanuel Maliaño
Emanuel Maliaño - avatar
+ 2
Do you mean changing the 42 with whatever you type in the input box? It seems your querySelector isn't finding the object you want to set the oninput function.
19th Jun 2020, 6:51 PM
Felipe BF
+ 2
I want to make that when changing the range also change the number of the side
19th Jun 2020, 6:55 PM
Matheus S. Candido
Matheus S. Candido - avatar
+ 2
Thanks everyone
19th Jun 2020, 10:30 PM
Matheus S. Candido
Matheus S. Candido - avatar
+ 1
I think you have to add your code inside a "document ready" function. I've just tested this with your code, and it seems to work. document.addEventListener('DOMContentLoaded', function() { console.log('document is ready. I can sleep now'); }); Source: https://stackoverflow.com/a/18775368
19th Jun 2020, 6:56 PM
Felipe BF
+ 1
I change but a thing that the error is in line 10 a go to look stackoverflow
19th Jun 2020, 7:06 PM
Matheus S. Candido
Matheus S. Candido - avatar
+ 1
</M4TH3US> I've edited my answer. I think I got it now. Can you please check it?
19th Jun 2020, 7:07 PM
Felipe BF