#How to make a custom select box with options from the server?

2 messages · Page 1 of 1 (latest)

manic meteor
#

I want to have a select box with options provided by the server, and this is not too hard, I have figured this out myself, however, as I am fairly new to web development, I am unsure of how I can get it to look nice, I would like something like this: https://codepen.io/cssinate/pen/KVdYjz however I do not know how I could make the server information into radios and labels like this, and other solutions online seem to have really complicated js code to take options from a select element and turn them into spans and divs and stuff, which I don't understand and I don't want to use that because I want to be able to fully understand my code.

rain pulsar
#

I wouldn't recommend playing with JS for input elements anyways because it breaks usability in multiple ways.

The codepen you provided is only css, try playing around with that to achieve what you are trying to do.