我有 kendoui 下拉列表。我需要绑定到选定的文本。
源代码:
<span style="" class="k-widget k-dropdown k-header" unselectable="on" role="listbox" aria-haspopup="true" aria-expanded="false" tabindex="0" aria-owns="Pests_listbox" aria-busy="false" aria-activedescendant="Pests_option_selected">
<span class="k-dropdown-wrap k-state-default k-state-focused" unselectable="on">
<span class="k-input" unselectable="on">Big Headed Ants</span>
<span class="k-select" unselectable="on">
<span class="k-icon k-i-arrow-s" unselectable="on">select</span>
</span>
</span>
<input type="hidden" data-bind="events: { select: roleSelected }, value: pets.id, text: pets.name" name="Pets" id="Pets" value="ABTB" data-role="dropdownlist" style="display: none;"></span>
值绑定成功,但文本未绑定 =(