[Solved] OnClick Event gets fired twice


You have to use event.stopPropagation() that stop the event propagation to the parent tree.

Try the FIDDLE,

As you have not provide the $get implementation, i have coded as a mock function like below

  function $get(idselector) {
    alert('$get');
    return $('#' + idselector);
  }

  function ABCDEF(event, object) {
    alert('ABCDEF');
    event.stopPropagation(); // try commenting this will reproduce your issue
  }

Hope it works for you

solved OnClick Event gets fired twice