+ 4
Why this still not working
11 ответов
+ 1
Code refactored and works
https://code.sololearn.com/WkfI58lYT1O8/?ref=app
+ 5
since you use xy === 0 and xy === 5 you don't need the other condition. or leave only the second condition
line 17 should look like this i think:
if(xy === 0 || xy<=4) {
and line 20 should look like this i think:
else if (xy === 5 || xy <= 8) {
+ 5
Sebastian Pacurar
No need to beat yourself up we are all human...😉
+ 4
ODLNT
oh my god... now i see what stupidity i just did there... really sorry about that, tiredness struck me 🤦
edited...
+ 2
Sebastian Pacurar thank u its has fixed and main problem not yet
+ 2
Muhamad Luthfi What exactly are you trying to achieve?
+ 2
Ore Adeleye
I mean second box should show automaticaly the category of value displayed in 1st, like: primary will be displayed if 1st box filled by red, white, yellow, blue, and also secondary for the other values
+ 2
Sebastian Pacurar
Take it easy bro ☺
+ 1
Ore Adeleye thanks, I found out now and i'll try it
+ 1
Just use internal javascript
Put all D code in ur html before D closing body tag
I think learn solo learn connected its js at D top which will make it impossible fr DOM manipulation to work... .. ..
- 3
Hi everyone