Why can't I get the ID of this button using jQuery?
<p><a href="http://jsfiddle.net/UHbfk/" rel="nofollow">jsFiddle</a></p>

<p>I'm trying the get the ID of a button using <code>$(this).id</code>, but it's coming up as undefined. What am I doing wrong? Thanks for reading.</p>

<p><em>EDIT: Code from jsFiddle example:</em></p>

<p>HTML</p>

<pre><code>&lt;button id='remove_button' type='button'&gt;Remove&lt;/button&gt;​
</code></pre>

<p>jQuery</p>

<pre><code>$('#remove_button').mouseup(function(){
     alert($(this).id);
});​
</code></pre>
