problem with jquery each and swich between 2 things
<p><a href="http://stackoverflow.com/questions/2435547/jquery-and-swich-between-two-cases-problem">first see this post</a>
i got this code</p>

<pre><code>$('.yesno').click(function(){
    $('.yesno').each(function(i, v){
        $(v).removeClass('selected');
    });
    $(this).addClass('selected');

     return false;
});
</code></pre>

<p>and html this</p>

<pre><code>    &lt;a href="#"&gt;
    &lt;span  class="Yes yesno"&gt;Yes&lt;/span&gt;
&lt;/a&gt;

&lt;a href="#"&gt;
    &lt;span class="No yesno"&gt;No&lt;/span&gt;
</code></pre>

<p>no the problem when i make more than one vote iam get very big problem</p>

<p>see this</p>

<pre><code>&lt;a href="#"&gt;
    &lt;span  class="Yes yesno"&gt;Yes&lt;/span&gt;
&lt;/a&gt;

&lt;a href="#"&gt;
    &lt;span class="No yesno"&gt;No&lt;/span&gt;
&lt;/a&gt;
&lt;a href="#"&gt;
    &lt;span  class="Yes yesno"&gt;Yes&lt;/span&gt;
&lt;/a&gt;

&lt;a href="#"&gt;
    &lt;span class="No yesno"&gt;No&lt;/span&gt;
&lt;/a&gt;
&lt;/a&gt;
</code></pre>

<p>when click first yes it make it selected and when iam going to the next yes when click its because <code>selected</code> but the first yes became <code>unselected</code></p>

<p>i want make some thin make each yes and know is differant of others</p>
