10 lines
247 B
JavaScript
10 lines
247 B
JavaScript
|
var new_one = $('fieldset #new_one').clone();
|
||
|
$('fieldset #new_one').remove();
|
||
|
|
||
|
$('fieldset a.remove').live( "click", function(){
|
||
|
$(this).parent().remove();
|
||
|
});
|
||
|
|
||
|
$('fieldset a.add').click(function(){
|
||
|
new_one.clone().appendTo( $('fieldset') );
|
||
|
})
|