正如您从标题中看到的那样,我尝试更改占位符文本,上面写着“没有结果匹配”并且从选定的标签中显示为灰色(禁用)。
我尝试使用“占位符”,但它不起作用。
<div>
<select chosen disable-search="true" id="newpaymentMethod"
placeholder="Placeholder text"
class="easytrade-input full-width" name="newpaymentMethod"
ng-model="vm.newRecord.paymentMethod"
ng-options="paymentMethod.type as paymentMethod.description
for paymentMethod in vm.paymentMethodOptions"
required>
</select>
</div>
然后我尝试使用“no_results_text”,仍然无法正常工作
<div>
<select chosen disable-search="true" id="newpaymentMethod"
no_results_text="Placeholder test"
class="easytrade-input full-width" name="newpaymentMethod"
ng-model="vm.newRecord.paymentMethod"
ng-options="paymentMethod.type as paymentMethod.description
for paymentMethod in vm.paymentMethodOptions"
required>
</select>
</div>
有什么想法吗?谢谢