Custom event trigger
$ event.trigger("myEventName" );
Custom event binding
The following code creates a binding to a custom event and will be executed when the custom event is triggered.
$(this).bind("myEventName",function (){
alert("myEventName triggered");
});