If you want to clone events along with new DOM nodes, you can try
Brandon Aaron's Copy Events plugin:
http://www.learningjquery.com/2007/01/copy-events-from-one-element-to-
another
--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Apr 19, 2007, at 10:59 PM, Ⓙⓐⓚⓔ wrote:
I think I understand...
change is a event bind, and event binds don't get cloned. so you
have to re-bind or re-make the nodes and re-bind anyway.
it's an idea, not a solution. I always bind my new nodes.
On 4/19/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Did I find a bug, or is there just nobody that knows how to fix it?
On Apr 19, 1:43 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED] > wrote:
> Hi,
>
> I'm trying to get flexible (array) select boxes in a form
working, but
> i'm having some troubles with the cloned ones. The end-use idea
is to
> auto-populate the second selectbox, after the first one has been
> changed. To do this, I need to match only the first selectbox
> ofcourse. And this works, but just for the first one.
> If you add a "new line" of selectboxes (by cloning the original), it
> doesn't match the first box of that as it does with the original.
But,
> and this is the thing that puzzles me, if you use the original first
> box it does tell you in the popup that there are a total of # select
> boxes. Which is using the exact same selector.
>
> It's hard to explain, so here's a test example: http://
members.home.nl/mavdude/jquery/
>
> Any idea or suggestion is welcome.
>
> Thanks,
> Mav
--
Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ