jQuery detect current element id
<p>I have some HTML codes:</p>

<pre><code>&lt;input type="button" id="btn1" class="myButton" value="Button 1"/&gt;
&lt;input type="button" id="btn2" class="myButton" value="Button 2"/&gt;
</code></pre>

<p>I need to run a jQuery function whenever user click each button, and I have to do it using their class.</p>

<pre><code>$('.myButton').click(function() {
   // do something
});
</code></pre>

<p>But what I should to do, depends on the current element Id.</p>

<p>My question is that how can I detect which element called this function? I need to know its id.</p>
