Use
var qData = {};
for(i = 1; i <= 5; i++) {
qData["qBidS" + i] = $("#S" + i).val();
}
Problems:
- Use .val(), there is no
value
property of jQuery object. - Use Bracket Notation and use string as per your requirement.
- Condition should be
i <= 5
noti == 5