event.namespace
The namespace specified when the event was triggered.
.event.namespace()🡢 String
This will likely be used primarily by plugin authors who wish to handle tasks differently depending on the event namespace used.
Determine the event namespace used.
JS
<button>display event.namespace</button>
<p></p>
HTML
$("p").on("test.something", function (event) {
alert(event.namespace);
});
$("button").click(function (event) {
$("p").trigger("test.something");
});
DEMO