I want after click on link append html input checkbox in a class, after it when clicked on input checkbox getting alert is checked.
I tried as following code but dont work for me:
DEMO: http://jsfiddle.net/HsveE/
HTML
<a href="#" id="ho">Click Me</a>
<div class="hi"></div>
jQuery
$('#ho').on('click', function(e){
    e.preventDefault();
    $('.hi').append('<input type="checkbox" id="isAgeSelected"/>');
})
$(".hi input[type=checkbox]").on('click',function () {
    alert('is checked')
})
How can fix it?
 
     
     
     
    