Trying to add more fields to a dynamically generated form.
User clicks 'add multiple choice' button, a multiple choice form is generated.
Then they should be able to add more 'wrong answer' fields to this form when clicked, but it's not working. I know jquery's .live()
is the right way to do it, but I can't get it to work.
$('button.btn-wrong').live('click', function(e) {
alert("yay!");
})
Working jsfiddle http://jsfiddle.net/SWCE4/4/