I have a select box and an input field
<label for="contact">Contact</label>
<select id="contact" name="contact">
<option data-phone="+14151234567" value="John Smith">John Smith</option>
<option data-phone="+15151234567" value="Jessica Smith">Jessica Smith</option>
<option data-phone="+16151234567" value="Jerome Smith">Jerome Smith</option>
</select>
<label for="phone">Phone</label>
<input type="text" name="phone"/>
When the user selects an option from the Contact select box, I want the option's data-phone attribute to be filled in the Phone text input.
For the user, they pick a name from a list, and the person's phone number magically autofills in the input fields below
How do I do this?