Reputation: 11
I'm trying to append another form-group. The button at the form-group added is not working. Can anyone tell me why?
<div class="form-group">
<input type="text"/>
<button class="add">Add</button>
</div>
JS
$('.add').click(function(){
$('.form-group').append(
'<input type="text"/>'+
'<button class="add">Add</button>'
);
})
Upvotes: 1
Views: 52