How to pass params from click to live function?
<p>I have two functions click and live. I want to pass a parameter from click to live.I tried something like below but it's not working.</p>

<pre><code>jQuery(document).ready(function(){
  var test = 'test' ;                               
  jQuery('.item a').click(test);//pass an argument from here
});

jQuery('.item a').live('click',function(e,test) {
  alert(test);//access argument here
});
</code></pre>

<p>Is this possible?</p>

<p>Update:</p>

<pre><code>function init() {   
    //When you click on a link
    jQuery('.item a').live('click',function(e,test) {
        alert(test);
    });
}
jQuery(document).ready(init);
jQuery(document).ready(function(){
    var test= 'test';
    jQuery('.item a').trigger('click', test);   
});
</code></pre>

<p>I am expecting an alert.</p>

<p>Edit2:</p>

<pre><code>jQuery(document).ready(function(){
    (function($){
        $('.item').each(function() {
            $(this)[0].oncontextmenu = function() { return false }
          });
        $.fn.ctrl = function(key, callback) {
            if(typeof key != 'object') key = [key];
            callback = callback || function(){ return false; }
            return $(this).keydown(function(e) {
                var ret = true;
                $.each(key,function(i,k){
                    if(e.keyCode == k.toUpperCase().charCodeAt(0) &amp;&amp; e.ctrlKey) {
                        ret = callback(e);
                    }
                });
                return ret;
            });
        };

        $.fn.disableSelection = function() {
            $(window).ctrl(['a','s','c']);
            return this.each(function() {           
                $(this).attr('unselectable', 'on')
                       .css({'-moz-user-select':'none',
                            '-o-user-select':'none',
                            '-khtml-user-select':'none',
                            '-webkit-user-select':'none',
                            '-ms-user-select':'none',
                            'user-select':'none'})
                       .each(function() {
                            $(this).attr('unselectable','on')
                            .bind('selectstart',function(){ return false; });
                       });
            });
        };
        $('.item').disableSelection();
    })(jQuery);             

});
</code></pre>

<p>Thanks.</p>
