how to get input array value by key with javascript function?
<p>Here is sample code i try to create input array with key and on change i want to get the value of individual input array value.</p>

<pre><code>&lt;input type="text" name="items[1]" value="443" onchange="get_items(1)"&gt;
&lt;input type="text" name="items[2]" value="233" onchange="get_items(2)"&gt;
&lt;script&gt;
       function get_items(key)
        {
          alert($("items["+key+"]").val());
        }

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