Hy, my problem is this http://jsfiddle.net/VZ2MK/1/
(function(){
var input = $('.test').clone();
$('a.add_input').on('click', function(e){
$(this).before(input);
e.preventDefault();
});
})();
I need to add dynamically some parts of a form, and i thought i'll clone it and then add it. And it worked for the first time, but if i want to add more than once, it stops, i mean it doesn't work. Any ideas?