I have two text input boxes that will need to be populated from the same selection list but each text box may have different values. What happens is that the code I have written allows you to click and change on value but when you try to do change the second value it changes both values rather than just the second value. I have looked at bind, text with no luck.
Input Boxes:
<input type="text" id="lensStyle" size="35" class="orderinput" tabindex="12"/>
<input type="text" id="lensStyleLeft" size="35" class="orderinput" tabindex="12"/>
grabs the values in from:
<select class="longbox" size="14" id="lensStyleBox"></select>
using this Jquery
$("#lensStyle").focus(function(){
$("#lensStyleBox").click(function(){
$("#lensStyle").val($("#lensStyleBox").val());
});
});
$("#lensStyleLeft").focus(function(){
$("#lensStyleBox").click(function(){
$("#lensStyleLeft").val($("#lensStyleBox").val());
});
});