jquery : check each form with keyup in (for) function
<p>i am using (for) to add multiple input form
i want to check this forms with keyup
but it always check the first form only</p>

<p>here is code</p>

<pre><code>for (i = 0; i &lt; 5; i++) {
    $('input[name*="morein"]').keyup(function () {
        var value = $(this).val();
        var moreincheck = $("#moreincheck");
        if (value &gt; 60) {
            moreincheck.css('display', 'block');
            moreincheck.text("error cant add more than 60");
        } else {
            moreincheck.css('display', 'none');
        }
    }).keyup();

    $("#divTxt").append('&lt;inputname="morein[]"  type="text" /&gt;' + '&lt;span id="moreincheck" class="checkerror"&gt;&lt;/span&gt;');
}
</code></pre>
