Get the ID of this from an onClick(this) in a button?
<p>Sorry Copy Paste error, the functions now match</p>

<p>I have some simple code and I cannot seem to get the id of the clicked item?</p>

<pre><code>&lt;input type="button" name="remove_grouping" value=Remove Group" onClick="removeGrouping(this);"/&gt;';
</code></pre>

<p>Then a simple JS Function</p>

<pre><code>function removeGrouping(src)
{
alert(src.id);
}
</code></pre>
