Deciding what technique to use heavily depends on your requirements, for instance you might find yourself in a scenario where you have to clean/process the user inputs before submitting the data to the back-end. …
With HTML it’s very easy to preselect a value by default on a select box using the selected attribute as follows.
If programming was magic, I would be the Wand and you the Bright. If it was a form of communication, I would be a multilingual who speaks Java, Python, C#, etc.