我想在我的数据库表的下拉列表中显示默认值。
这是我的 html 代码:
<div class="POScounter">
<div class="form-group counter">
<label>Counter :</label>
<select class="form-control" id="CounterDropdown"></select>
</div>
<div class="form-group pricing">
<label>Pricing Level :</label>
<select class="form-control" id="PricingLevelDropdown"></select>
</div>
<div class="form-group pricing">
<label>Mode:</label>
<select class="form-control" id="Modedropdown"></select>
</div>
</div>
这些是我表中的值:
Id |SettingName | settingNamevalue
1 |mode | cash
2 |PricingLevel| test1
3 |Counter | counter1