Description: This attribute contains the namespace specified when the event was triggered.
event.namespace
version added: 1.4.3
Examples
Determine the event namespace used.Full source:
<!DOCTYPE html> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> <script type="text/javascript" language="javascript"> $(document).ready(function(){ $("p").bind("test.something", function(event) { alert( event.namespace ); }); $("button").click(function(event) { $("p").trigger("test.something"); }); }); </script> </head> <body> <button>display event.namespace</button> <p></p> </body> </html>
Was this information helpful?

