Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Cloned objects and functionality

a JQuery query

12:45 pm on Oct 30, 2008 (gmt 0)

Full Member

10+ Year Member

joined:Aug 3, 2005
posts: 269
votes: 0

I have a little JQuery query wondering if anyone can shed any light on it.

I have a block of HTML that i clone in order to add users to a list. This block of HTML has a form in it and also a button - both of which has functionality that is defined using JQuery (for the submit and click). Problem is that as the HTML is cloned, and even though i have defined stuff after the clone the functionality is not picked up. Very strange.

This is IE specific - my code works fine in FF.

What i am thinking is that IE renders the code at a different time? i dont know. here is a snippet of the code in question.


//set up a load of stuff here then get to the section where a user is cloned and prepended to the list

var userClone = $("#new_user_html").clone();

$(".exp_delete", userClone).click(function(){
$(".business_user_form", userClone).submit(function(){
businessUserSubmit( $(this) );
return false;
$("#users_total").prepend( $(userClone).html() );


Any help appreciated.


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members