Javascript: How to "GET" value from dynamic generate input
<p>i use php to generate dynamic input, example generated code</p>

<p><strong>HTML</strong></p>

<pre><code>&lt;input type='text' name='name1' onBlur='getValue(1)'&gt;
&lt;input type='text' name='name2' onBlur='getValue(2)'&gt;
&lt;input type='text' name='name3' onBlur='getValue(3)'&gt;
&lt;input type='text' name='name4' onBlur='getValue(4)'&gt;
&lt;input type='text' name='name5' onBlur='getValue(5)'&gt;
</code></pre>

<p>or more....</p>

<p><strong>Javascript</strong></p>

<pre><code>function getValue(x){
    var nam = document.myForm.name[x].value;  &lt;&lt;&lt; error?
    if(nam&gt;1000){
        document.myForm.name[x].focus;   &lt;&lt;&lt; error?
        alert ("input &gt; 1000");
    }
}
</code></pre>

<p>What the right way to code the javascript? which i pointed &lt;&lt;&lt; error?</p>

<p>Thanks</p>
