+ 2
I need help please,i want change the number 42 but my code is wrong, my inglish not is very good 😅
8 odpowiedzi
+ 4
https://code.sololearn.com/Wb5gs9sPD6zd/?ref=app
+ 3
I don't know why the js code doesn't work very well in his tab so I put it on the html
+ 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.
+ 2
I want to make that when changing the range also change the number of the side
+ 2
Thanks everyone
+ 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
+ 1
I change but a thing that the error is in line 10 a go to look stackoverflow
+ 1
</M4TH3US> I've edited my answer. I think I got it now. Can you please check it?