I want to prevent parent click when I clicking on child SPAN. I tried
    e.stopPropagation
    and thi way
    if (!e) e = window.event;
    e.cancelBubble = true;
    if (e.stopPropagation) e.stopPropagation();
I have html like:
 <label for="parent_id"> Some text
   <span id="child_id">Click child</span>
 </label>
 <input id="parent_id" />
Function for Parent element
$('#parent_id').click(function (e) { SomeParentCode }
Function for Child element.
$('#child_id').click(function (e) {
      e.stopPropagation();
       But I what to prevent parent click
       SomeChildCode
}