Link to home
Create AccountLog in
Avatar of dgrafx
dgrafxFlag for United States of America

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
Avatar of haloexpertsexchange
haloexpertsexchange
Flag of United States of America image

I believe that you can manually trigger the change event using this
http://api.jquery.com/change/
Avatar of dgrafx

ASKER

what line at that link are you referring to?
ASKER CERTIFIED SOLUTION
Avatar of haloexpertsexchange
haloexpertsexchange
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of dgrafx

ASKER

Ahhh - ok
didn't know what you meant
yes - that works - thanks