how do not duplicate a action in jquery
<p>js:</p>

<pre><code> $(".test").focusout(function(){
    var qtdCont = parseInt($(this).val());
      if(qtdCont &gt; 0)
      {
         var qtdProd     = $(".value").val();
         var qtdProdInt  = parseInt(qtdProd);
         var qtdProdTot  = qtdProd-qtdCont;
         $(".value").val(qtdProdTot);
      }
 });
</code></pre>

<p><strong>Demo:</strong> <a href="http://jsfiddle.net/dNEmD/18/" rel="nofollow">Jsfiddle</a></p>

<p>i need the subtract only the fist time when he lose the focus.</p>

<p>because if u go's back and focusout again, the subtraction (obviously) will  happen again.</p>

<p>how can i control that ?</p>

<p>thank you.</p>
