Calling Jquery function from link onClick attribute
use an id on your anchors, no onclick:

&lt;li&gt;&lt;a href="#" id="whatever"&gt;Event2&lt;/a&gt;&lt;/li&gt;


then use the click event on it in the behavoir:

(function ($) {
    Drupal.behaviors.someClicks = {
        attach: function(context, settings) {
            $('#whatever').click(function() {
               console.log('vamoooh');
            });
       }
    }
})(jQuery);