Manually passing this onClick event
<p>How to manually pass "this" value from a different function</p>

<p>jQuery</p>

<pre><code>$('#divName ul li a').click(function() {
    $(this).addClass('active');
});
$(window).scroll(function() {
    //for condition a
    //the value of this will a

    //for condition b
    //the value of this will be
});​
</code></pre>
