-
Notifications
You must be signed in to change notification settings - Fork 141
Original select's change event #188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
No, this is not supported. And even the new, built from scratch version (see #140) will not support that feature. It needs event pulling which is "bad". Perhaps I could help when you tell me what you want to achieve? |
Agreed, it goes against every fiber of my being but I can't change the script; it's already in production and I don't have the authority to modify it. Anyway, here's the scenario, There are four swatches which when clicked select the relative value from the original select box and vice versa. The latter scenario works perfectly fine, the former however, does not. Now, I can't target the onChange event of the original select boxes because they're autogenerated (I'm targeting select boxes through '#content select'), so I need a generic way to target the original selectbox's change event to bring the selection of the generated selecbox in-sync when one of the swatches is clicked. i.e. Any help would be greatly appreciated. |
Mhh ok, when you HAVE to do it that way why not built a event pulling functionality? Just check the original select via timeout or intervall every 500ms and update the widget with the available methods. Should be no big thing. |
Mhh and when onChange would be suitable why not use $('#content select').change() or $('#content select').bind("change", ? |
Please give some feedback! |
Closed as no feedback was given, please reopen if needed. |
Is a way to associate the original dropdown's change event to the generated dropdown's value?
I have a piece of code that's targeting the original selectbox's selection which fails to change the generated selectbox's selection.
The text was updated successfully, but these errors were encountered: