can somebody tell me why this is happening?
<p>i wanna to alert only the last value not all the clicked class
example</p>

<pre><code>$(document).ready(function(){
$(".a").click(function(){
 var a = $(this).children(".b").val();
    $("#b").click(function(){
       alert(a);            
    });
});
</code></pre>

<p>});​</p>

<p><a href="http://jsfiddle.net/3dnDj/1/" rel="nofollow">here is the code</a></p>
