event listener on parent not on childjavascript

JavaScript
$('#'+groupId)[0].addEventListener("click", function(e) {
    e.stopPropagation();
    collapseExpand(e); // google for stopPropogation()
});
Source

Also in JavaScript: