You can use .find() to "find" the dynamically generated elements
within the nearest static parent, i.e.:

$('#id_of_div').find('select').change(...);

Or, you can use the Live Query plugin to create your bindings if you
know the target is dynamically generated:

http://plugins.jquery.com/project/livequery

- jason




On Jan 4, 10:42 am, guellichs-erbe <[EMAIL PROTECTED]> wrote:
> 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

Reply via email to