On 2/22/07, triggsley <[EMAIL PROTECTED]> wrote:
>
> Hi All
>
> Great forum, very helpfull.
>
> I've a simple problem whereby I have a form which highlights all form tags
> on focus() - no problem here, the problem occurs when a user clicks on the
> "add new" link to clone the first row and append it to the last spot in the
> table, this works really well
>
>    !! BUT !!
>
> the form elements lose the highlighting effect, big problem as this affects
> the accessibility of the page, I can only image that because its a
> dynamically added block of elements, that its not being read by the jquery
> object ??

Event handlers are not preserved when cloning elements. So:

* you can reassign the event handlers to the cloned elements

or

* you can use the copyEvents plugin:
<http://www.learningjquery.com/2007/01/copy-events-from-one-element-to-another>

Best.
-- 
Choan
<http://choangalvez.nom.es/>

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to