Skip to content Skip to sidebar Skip to footer

Jquery Script - Fill Select With Input Text And Vice Versa

I have 2 scripts that I need to combine, I basically have a script that allows a text input to be filled when you select an item in a select list. I also have a script that fills a

Solution 1:

I added another change script function, seems to have made it work. Your change set the selected, and mine transfers the values.

$('#sel').change(function(){
    $('#txt').val($('#sel').val());
});

http://jsfiddle.net/snlacks/akhyp/1965/

Post a Comment for "Jquery Script - Fill Select With Input Text And Vice Versa"