input value change detection using class
<p>based in this question:</p>

<p><a href="http://stackoverflow.com/questions/8043440/jquery-input-value-change-detection">Jquery input value change detection</a></p>

<p>i have <code>input 1</code> and <code>input 2</code> , with <code>value='100'</code></p>

<p>if i change the <code>input 1</code> value, the alert show that the value was change, perfet.</p>

<p>but if i get in the input and lose the focus (i'm working with <code>focusout()</code>) again, the alert will keep showing that the value was changed again, maybe because i'm using a class.</p>

<p>i cant put this to work, what i'm missing ?</p>

<p><strong>html</strong>:</p>

<pre><code>&lt;input type="text" value="100" class="inputTest" /&gt;
&lt;input type="text" value="100" class="inputTest" /&gt;
</code></pre>

<p><strong>js:</strong></p>

<pre><code>$(".inputTest").focusout(function(){
   if(this.value != this.defaultValue){
        alert('changed');
    } 
});
</code></pre>

<p>made a <a href="http://jsfiddle.net/fJGqY/5/" rel="nofollow"><strong>live example</strong></a>.</p>

<p>Thanks.</p>
