dgrafx
asked on
how to
I have a selectbox where each option has an attribute "val" and on the selects change event I grab the value of the "val" attr and set the value of another element (a textbox) with that.
<option value="1" val="x2">One
<option value="2" val="z6">Two
so onchange then a textboxs value will = z6 if option Two is selected
problem:
i've incorporated a lookup box for the selectbox - when i type then a match is selected
but that of course doesnt trigger the jquery change function for the selectbox
how should i go about this?
how can i trigger the change function?
thanks
<option value="1" val="x2">One
<option value="2" val="z6">Two
so onchange then a textboxs value will = z6 if option Two is selected
problem:
i've incorporated a lookup box for the selectbox - when i type then a match is selected
but that of course doesnt trigger the jquery change function for the selectbox
how should i go about this?
how can i trigger the change function?
thanks
ASKER
what line at that link are you referring to?
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Ahhh - ok
didn't know what you meant
yes - that works - thanks
didn't know what you meant
yes - that works - thanks
http://api.jquery.com/chan