How do I pass the value of an HTML property to a jQuery function?
<p>I would like to pass the value of an HTML tag to a jQuery alert box, but I'm not getting any luck. I basically want to pass either "1" or "2" to the alert box. I keep getting "undefined" in the alert box.</p>

<pre><code>&lt;button class="up" value="1"&gt;
&lt;button class="down" value="2"&gt;

$(document).ready(function(){
    $(".up,.down").click(function(){
        alert(this.value);
   });
)};
</code></pre>

<p>I'm doing this for an ajax function, but I need to make sure I can pass the values first, so the alert box is for debugging.</p>
