Assume there is a form with the following three fields:
- HTML Select box with two values (Metric/English)
- HTML Input box with label
value_metric
- HTML Input box with label
value_english
For end-user I want only the two fields shown, the select box, and the corresponding metric or English Input box. Toggling the select box shows/hides the corresponding input boxes.
How do I do this? How do I hide one while showing the other? I am looking for the method of operation, not necessarily the actual code.
For example, do I hide it, disable it, make it read only, do something else? I want it to seamlessly update and swap when I toggle the Select box.