I go through the many websites but am a slow learner i couldn't get the correct meaning for this please clarify my doubt..
<input type='checkbox'  name="checkbox[]" onclick="whole_delete(this)" id="checkbox[$id]" value="<?php echo $store['id'];?>"/>
function whole_delete(source) {  
  checkboxes = document.getElementsByName("checkbox[]");  
  for(var i=0, n=checkboxes.length;i<n;i++) {
    checkboxes[i].checked = source.checked;
  }
}
onclick="whole_delete(this) here this can change as a source in whole_delete
i am confusing.and i dont know the value of source and what is the meaning of source.checked; pl identify my question and clarify my doubt.ya i know my question is silly but pl clarify.
 
     
     
     
    