I am using the following listener:
$('#datatable .Answer input:radio').on('change', function() {
alert('Radio Button');
});
And I add radio button dynamically to this table '#datatable' as follows:
$(this).html('<input type="radio" class="Answer" name="correct"/>');
where this is the td element in which radio button should be added. Why doesn't the listener work on new elements?