how can the parent fire the custom event to notify its children/siblings? for example:
The answer of pebbl is good but it has flaw. The capturing phase is somehow simulated by the normal triggering of events from document down to the concerned element. But the issue will be, calling the standard jQuery trigger function on any element will immediately followed by a bubbling phase starting from that element and up. So i believe he can stick with accessing the events data directly from the collection of elements and calling it directly not using the standard trigger function , something like this
var JQ_LT_17 = parseFloat($.fn.jquery) < 1.7;
function getEventsData(element) {
return JQ_LT_17 ? $(element).data('events') : $._data(element).events;
}
Code snippet borrowed form jQuery.bind-first library v0.1 Vladimir Zhuravlev