At times, it is necessary to be able to distinguish between different handlers for the same event without using the handler function. When this need arises, jQuery provides the ability to namespace events. To namespace an event, you add a period and the namespace to the name of the event. For example, to give the click event the namespace of
alpha, perform this:
jQuery only allows you to create namespaces that are one level deep. If you add a second namespace, you don't create a second level; instead, you create a second namespace for the same event. Take a look at the following code:
The preceding code is equivalent to creating two separate namespaces, ...