I have a select:
<select>
<option value="Peter">Peter</option>
<option value="James">James</option>
</select>
<input type="text" value="" />
I need to copy the value of the selected option in the select to the input value.
How can I do this using jquery?