I'm attaching a custom event handler to the body
in jQuery's ready
method.
Afterwards I immediately trigger
the custom event but nothing seems to happen.
$(function(){
$("body").on("test", function(){ alert("test triggered"); }
$("body").trigger("test");
}