Imagine you have a select tag with multiple options. You want to display a specific value in the input field below when a user selects one of the options.
<select name="cars" id="cars">
<option value="volvo">Volvo-100</option>
<option value="saab">Saab-200</option>
<option value="mercedes">Mercedes-300</option>
<option value="audi">Audi-400</option>
</select>
<input type="text" id="name" name="name">
If Volvo is selected, the input field should display the value 100. If Audi is selected, the input field should display the value 400. I am in need of assistance with this, can someone please help me?