issue when Upgrading to jQuery 1.5.1 -


the delete link don't work when upgrading jquery 1.5 jquery 1.5.1:

demo: http://jsfiddle.net/efsgn/

this bug clone() method introduced in jquery 1.5, , fixed in 1.5.1.

the default behaviour clone() should not copy events , data of cloned element, not case 1.5 (where default behaviour was copy events).

to fix code, change:

$('#add-input').click(function() {     main.append(clonedfield.clone());     return false; }); 

to

$('#add-input').click(function() {     main.append(clonedfield.clone(true));     return false; }); 

working fiddle: http://jsfiddle.net/efsgn/7/


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

android - layout with fragment and framelayout replaced by another fragment and framelayout -