Lowest price ever! Learn Generative AI for 48% less!
Get my discount+ 7
ⓈⒶⓉⓃⒶⓂ I think it's a problem with Sololearn.
https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_datalist
I have checked on w3schools it's working fine but same code from w3schools is not working here.
+ 6
Mirielle👽 I have bought from Nokia official Store. So please don't say like that.
Btw let's send feedback to Sololearn.
+ 5
Firstly you should close the option tag and enter the value between the opening and closing tag
Like this <option value>Value should be here</option>.
Secondly datalist tag isn't working properly in sololearn I have also tried better move to this code
<select id="cars" name="cars">
<optgroup label="Big companies">
<option selected value="Audi">Audi</option>
<option value="BMW">BMW</option>
<option value="Jaguar">Jaguar</option>
<option value="Volvo">Volvo</option>
</optgroup>
</select>
+ 4
Mirielle👽 Means it's problem with my phone also.
Btw I have Nokia 7plus android one with latest updates and the code is not working.
+ 4
Use a select with options....
+ 3
It works for me (tested on SoloLearn app and Chrome - in a phone), the car brand list shows up, though I was expecting the list to show after I type something (like offering suggestion) rather than showing up on focus.
Great code anyways ⓈⒶⓉⓃⒶⓂ 👍
(Edited)
+ 2
your code was fine with me . i could run the code in my device. i think error is on your sololearn app. once i too got your problem.
+ 2
It's working.
+ 2
For me personally it does work maybe your browser does not know this tag so you can try opening this link in a different browser ...
Wishing you lots of success
post Scriptum. You should always have software installed on your computer. You can run the code on a real project and if you install updated and original software then all tags should work smoothly
+ 2
I think it has to deal with browser support
+ 1
Hmm...
+ 1
You too😊
+ 1
It's should be list in input not id="that datalist"
+ 1
https://code.sololearn.com/WcQG1E84u3p9/?ref=app
Here I solved it
+ 1
print(int(input()),8)
How this code works(logic)????
+ 1
I am glad to help out 😊 🎉 keep coding!!
+ 1
Do it something
0
It does not work because the id is car but in the datalist it is cars so thats why it wont work