Adding options to selector wheels | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Adding options to selector wheels

Is it possible to add options to a selector wheel (like the Dob ones) based on user input ?

13th Jun 2018, 5:10 PM
Daniel R. Pope
Daniel R. Pope - avatar
6 Answers
+ 1
What's the determining factor for which datalist the output goes into? It's important for establishing the logic for the code. Programs can be oddly specific. I'll digress for a moment with a joke my software engineer friend tells: "A programmer is going to the grocery store and his wife tells him, 'Buy a gallon of milk, and if there are eggs, buy a dozen.' ... Upon arriving home, the wife asks, 'Why'd you buy 12 gallons of milk?' to which he responded, 'They had eggs!' "
16th Jun 2018, 10:20 AM
Janningā­
Janningā­ - avatar
+ 1
If by Dob you mean Date of Birth, yes. What did you have in mind? I would guess that this might be a good place to start: https://www.w3schools.com/Html/html_form_elements.asp
14th Jun 2018, 3:35 AM
Janningā­
Janningā­ - avatar
+ 1
Daniel R. Pope , So conceptually: DatalistAoption + DatalistBoption = output Then, output gets tacked onto both datalists as an option?
14th Jun 2018, 5:14 PM
Janningā­
Janningā­ - avatar
0
so basically im using dropdown boxes to have the user select two options. those options then get combined with a button click and a random new option is created. i need that option to be displayed in the dropdown menu as an available choice for the next button click
14th Jun 2018, 12:22 PM
Daniel R. Pope
Daniel R. Pope - avatar
0
close to it. depending on the output it would need to either go into one datalist or the other
14th Jun 2018, 10:46 PM
Daniel R. Pope
Daniel R. Pope - avatar
0
the datalists are (Mother) and (Father) its an offspring generator / sim. if the offspring is a male it would go in father if ite female if would go in mother to be used as an option for the next pairing
16th Jun 2018, 12:34 PM
Daniel R. Pope
Daniel R. Pope - avatar