title: jquery toggle not working as expected
body: <p>Hello people here is my JQUERY code below...</p>
  
  <pre><code>    $(function(){
  
      $(".block2").toggle(
  
      function(){$(this).text(1);},
      function(){$(this).text(0);});
  
      });
  </code></pre>
  
  <p>where <code>block2</code> is the same class name for 2 divs...what iam trying to do is if i click <code>first div</code> it should enter <code>1</code> in it.. If i click <code>second div(second time)</code> it should enter <code>0</code> how to fix this??  </p>
  
  <p><a href="http://jsfiddle.net/y5ra2/" rel="nofollow">demo link</a> </p>