Events in jQuery can be written as follows:
<event-type>[.<event-namespace>]
In your case, click.divClick is just a click event, except that it is organized in the divClick namespace.
One of the advantages of using namespaces is when you need to disable event listeners:
$(el).bind('click', function() { alert('click 1'); }; $(el).bind('click.divClick', function() { alert('click 2'); }; $(el).unbind('click.divClick');
The last line will unregister only the click 2 event handler without affecting the click 1 event handler.
You can also unregister all events from the namespace:
$(el).unbind('.divClick');
source share