What are my options to get all the necessary data using javascript and/or jQuery for the following scenario?
<p>I'm not sure how to best word this, so I'll give it a shot and hopefully revise it as it comes to me.</p>

<p>Using javascript/jQuery, let's say I want to get some data from a clicked element to a function for processing.  A couple of options:</p>

<p>OPTION 1:</p>

<pre><code>$('.classOfInterest').click(function() {
      // How can I get 'a' and 'b'?
    var c = $(this).hasClass('cExists'); 
}); 
&lt;a class="cExists classOfInterest" /&gt;
</code></pre>

<p>OPTION 2:</p>

<pre><code>function processClick(string a, string b) {
    // How can I get a reference to the calling element, similar to $(this) in the event handler?
    var c;  // here I want to determine whether the calling element has class 'cExists'    
}
&lt;a class="cExists" href="javascript:processClick('a', 'b')" /&gt;
</code></pre>
