English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
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:
Syntax:
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 Value | Parameter |
---|---|
Description | eventThisEvent |