I have a form in vehicles.php:
<form name='vehicleform'>
<select name='vehiclelist'>
<option value=''>Select</option>
<option value='bus'>Bus</option>
<option value='bike'>Bike</option>
<option value='car'>Car</option>
</select>
<input type='text' name='current'></input>
</form>
When user open vehicle.php first time then in dropdown, 'Select' option will be selected and textbox(current) will be empty. When user select any option from dropdown then page reload and that dropdown item should be selected and value of that dropdown should be in textbox(current).
I need a simple js function and not a complex method. Any idea?
Thanks