How do I add event handler to dynamically created checkbox in jquery?

How do I add event handler to dynamically created checkbox in jquery?

I am adding multiple check boxes dynamically on my page, but when I click them not any of click or change event is firing. I tried following code but its not working: 

  1. $(".selectItem").live('click', function(){
  2.         alert('test'); 
  3. });

.selectItem is class for all check boxes.
Can any one help me solving this problem.

Do any one need more info?