I used the script on one of my scripting it was great i thought i solved the problem but whenever i change my option every button on my page chages to the same value of the option.Can i restrict my values to a single input type?
this is the script in question

```
<select>
  <option text="ok">1</option>
  <option text="hello">2</option>
  <option text="test">3</option>
</select>
<input type="text" />

$(function(){
 $('select').on('change', function(){
    $('input').val($('option:selected', this).attr('text'));
  });
});

```