English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

CSS Methods

jQuery Effect Methods

jQuery event.namespace Property

When an event is triggered, the event.namespace property returns the custom namespace.

Plugin authors who want to handle tasks differently based on the event namespace used can use this property.Note:

Namespaces starting with an underscore are reserved for jQuery use.

Syntax:

event.namespace

Instance

Example
  $("p").on("test.something", function(event){
$("p").trigger("test.something");
alert(event.namespace);
  $("button").click(function(event){
$("p").trigger("test.something");
});/Test and see‹

Parameter ValueParameter
DescriptioneventThisEvent

jQuery Effect Methods