orbit-basic/app/assets/javascripts/user_attribute_form.js

10 lines
247 B
JavaScript
Raw Normal View History

2011-12-05 02:36:25 +00:00
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') );
})