Hopefully a straight forward one:
I would like to write some javascript code to receive multiple inputs for multiple variables from the user. A bit like a prompt but for three options (so kind of like 3 prompts on one box).
Suggestions for the best way of going about this?
Create a form with necessary fields and place a JavaScript handler on its “submit” button.
Either create it in HTML and query elements by their ids or create directly with DOM methods from JS – you’ll have direct references to elements from beginning.