On 25 août, 01:56, James <james.gp....@gmail.com> wrote:
> clone(true) should do the trick. Though before there was a bug with
> this function where the events would not be cloned (in IE, I think). I
> don't know if that issues still exists, but try it out.
> Documentation:http://docs.jquery.com/Manipulation/clone#bool

Thanks, but it seems it does the trick only for event "declared". For
instance if you try to clone an input with the autocomplete plugin
wich does not seem to use the event in the same place it doesnt work :

if(jQuery().autocomplete){
      $(".users").autocomplete('/contactSearch.html', {
          width: 300
      });
}
$(".addUser").click(function(){
      $("#usersTable tr:last").clone(true).appendTo("#usersTable");
});

Is there a way around this? We're very close to what should be done!

Reply via email to