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?
<input type="text" size="3" value="<?php echo $item['qty'] ?>" id="quantity[<?php echo $sizeid?>]" name="quantity[<?php echo $sizeid?>]">
$.ajax({
type: "POST",
url: "bin/process_updateqty.php",
dataType: 'json',
data: dataString,
success: function(data) {
$.each(data, function(key, value) {
alert($('#quantity['+key+']').val());
});
}
});