Jquery on change reset to 0 and show alert
<p>I try to get this code to work with the 3 input fields, but it works only with the first  : </p>

<pre><code>&lt;form&gt;  
&lt;p&gt;&lt;input id="qty" type="text" maxlength="1"  /&gt;&lt;/p&gt;
&lt;p&gt;&lt;input id="qty" name="text" type="text"  /&gt;&lt;/p&gt;
&lt;p&gt;&lt;input id="qty" name="text2" type="text" /&gt;&lt;/p&gt;
&lt;/form&gt;

&lt;script type="text/javascript"&gt;

$("#qty").change(function(e) {
    if(this.value != '3' &amp;&amp; this.value != '6' &amp;&amp; this.value != '9') {
        this.value = 0;         
        alert('You can buy only 3, 6, or 9 pieces fromn this product');
    } });

&lt;/script&gt;
</code></pre>

<p>What can be my error ?</p>
