I am trying to build a small custom event. I am very new to jquery and JS in general , have a look at my code below:

```
$(function () {

    test = $.Event('click');

    $('a').on( test , function(e){
        console.log(e.target);
        return false;
    })

});

```

now in the above code when the a is clicked the `test` event is never fired , the reason being the [.on](http://api.jquery.com/on/) documentation clearly states that the 1st parameter must be a string .

Now my question is suppose I use the `event constructor` as discussed in [this](https://api.jquery.com/category/events/event-object/) Jquery documentation. How do I attach an event then to `test`?