Due do a special requirement, i would like to change two things in the product page:
1. change qty field to a drop box instead of textbox
2. made the qty default as zero instead of 1
any ideas how, please help, thank you!
var maxQty = 100;
var selectList = new List<SelectListItem>(maxQty + 1);
for (var i = 0; i <= maxQty; i++)
{
selectList.Add(new SelectListItem { Text = i.ToString(), Value = i.ToString() });
}
@Html.DropDownListFor(model => model.EnteredQuantity, selectList, new { @class = "qty-input" })