How to get value of textbox after ajax post using JQuery
<p>I am getting undefined as a value using the code below when I try to get the value of a textbox after a post. Is this possible or am I missing something basic?</p>

<pre><code>&lt;input type="text" size="3" value="&lt;?php echo $item['qty'] ?&gt;" id="quantity[&lt;?php echo $sizeid?&gt;]" name="quantity[&lt;?php echo $sizeid?&gt;]"&gt;

$.ajax({
type: "POST",
url: "bin/process_updateqty.php",
dataType: 'json',
data: dataString,
success: function(data) {
    $.each(data, function(key, value) {
        alert($('#quantity['+key+']').val());
    });
 }
</code></pre>

<p>});</p>
