+ 1

Drop-down list!

how do i make the drop down list? (like the one on sololearn top-right corner) is it js or html?

12th Nov 2017, 2:53 AM
Jabbk
Jabbk - avatar
6 Antworten
12th Nov 2017, 4:13 AM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
+ 4
Thanks @David
12th Nov 2017, 4:22 AM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
+ 3
Are you referring to a drop down list like the one used for Sort by: Votes or Date? If so, you would use the HTML <select> and <option> tags. Example: <select> <option value="Votes">Votes</option> <option value="Date">Date</option> </select>
12th Nov 2017, 3:09 AM
David Carroll
David Carroll - avatar
+ 2
@Nomeh Ah... I was responding to this question from the browser on my laptop. Now I see what he was referring to with "top-right corner". Nicely done!
12th Nov 2017, 4:20 AM
David Carroll
David Carroll - avatar
+ 1
oh cool thats it, thanks!! :) @David @Nomeh
12th Nov 2017, 4:29 AM
Jabbk
Jabbk - avatar
+ 1
<select> <option>abcd</option> <option>efgh</option> </select> OR <datalist> <option>abcd</option> <option>efgh</option> </datalist>
30th Dec 2017, 8:43 AM
Ayush
Ayush - avatar