There are two checkboxes in my page for which the change event I'm capturing in the below code:
$(':checkbox').change(function(){
 alert('hello '+this.checked);
 });
But if I add third checkbox to that group and I click this checkbox, the above function is not triggered.
I am adding the third checkbox to the group through the innerhtml code like below:
 var text2='<li><input type="checkbox" name="vehicle" value="TRUE"/><a    href="#"> New function</a></li>';
 text1=text1+' '+ text2;
 parent.innerHTML=text1;
Note: text1 is the existing innerhtml code of existing two checkboxes.
 
     
     
     
    