issue when Upgrading to jQuery 1.5.1 -
the delete
link don't work when upgrading jquery 1.5 jquery 1.5.1:
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
Post a Comment