jQuery custom events are a great feature to deal with complex situations or non trivial situations.
You can create a custom event that reacts to a particular situation that is not defined with jQuery.
You can attach a custom event just like this:
and trigger it like this:
Note: You can also attach custom events to non DOM elements, like an object of any class for exemple.
You can see a demo of these feature in this jsFiddle.