jQuery "this" issue
<p>I am new to jQuery. I am trying to pass a value to a function.</p>

<pre><code>&lt;div class="the_service" id="ecommerce" onClick="javascript: gorightthere(ecommerce);"&gt; 

function gorightthere(this){

    var gothere = $('h2[name="'+this+'"]');
    if (gothere.length){
$('html, body').animate({
                    scrollTop: gothere.offset().top
                     }, 2000);
        removeClass('selected');
        gothere.addClass('selected');
    }
};
</code></pre>

<p>What I am trying to do is to pass the value "ecommerce" to the function. I want to use "this" because I have many different values to pass, and I want to do a function that will work with every value I will pass after the onClick event.</p>

<p>Any help?</p>

<p>Thanks</p>
