[jQuery] Binding a function to dynamically generated markup does not work

[jQuery] Binding a function to dynamically generated markup does not work


Hello *,
I've dynamically ( per javacript) generated <select/> lying in a div
container (statically defined in <body/>).
It does not work to bind a function to this select ($
("#id_of_select").change(...).
$("#id_of_div).change(...) does work and is my workaround at the
moment.
But this means, that it is impossible to generate markup only
dynamically, you always have to define your div/span/wathever
containers.
Is this right?
Happy jQueriying
Uli