how get button's value?
<p>now , this my code </p>

<pre><code>&lt;button class="delclass id="b1"
name="b1" value="b11"&gt;del&lt;/button&gt;

 &lt;script type="text/javascript"&gt;
         $(document).ready(function () {
             $('.delclass').click(
                 function () {
                     alert('1111');
                     alert($(this).attr('value'));
                     return false;
                 });
         });
         &lt;/script&gt;

&lt;button class="delclass id="b1"
name="b1" value="b11"&gt;del&lt;/button&gt;
</code></pre>

<p>I only want to get button's value (e.g. b11), I don't want to write:</p>

<pre><code> $('.delclass').click 
</code></pre>

<p>I only want to write:</p>

<pre><code>$(this).attr('value')
</code></pre>

<p>but it doesn't work (displays 'undefined').</p>
