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:
- $(".selectItem").live('click', function(){
- alert('test');
- });
.selectItem is class for all check boxes.
Can any one help me solving this problem.
Do any one need more info?