【问题标题】:How to use select chosen?如何使用选择选择?
【发布时间】:2015-08-05 09:23:05
【问题描述】:

我在表格中有这一行

<td class="chosen-container chosen-container-single chosen-with-drop chosen-container-active" style="width: 100%" title="">
    <a class="chosen-single chosen-default" tabindex="-1">
        <span>Choose a country...</span>
        <div><b></b></div>
    </a>
    <div class="chosen-drop">
        <div class="chosen-search">
            <input type="text" autocomplete="off" tabindex="2" />
        </div>
        <select class="chosen-results">
            <option value=""></option>
            <option class="active-result" data-option-array-index="1">United States</option>
            <option class="active-result" data-option-array-index="2">United Kingdom</option>
            <option class="active-result" data-option-array-index="3">Afghanistan</option>
            <option class="active-result" data-option-array-index="4">Aland Islands</option>
            <option class="active-result" data-option-array-index="5">Albania</option>
        </select>
    </div>
</td>

这段代码有什么问题?我需要实现标准选择。

【问题讨论】:

  • 你的问题不清楚。您希望所选选项出现在文本框中吗?
  • 我需要在我的页面上创建标准选择的选择
  • 对不起,我仍然不清楚“创建标准选择的选择”是什么意思。请详细说明
  • 正如 Ahs N 所说,我们不清楚您想要什么。那你能不能说的更具体一点。
  • 我需要创建这个harvesthq.github.io/chosen

标签: html jquery-chosen


【解决方案1】:

你的意思是这样的?

fiddle

<option value="" class="placeholder">select</option>

【讨论】:

    猜你喜欢
    • 2016-02-19
    • 1970-01-01
    • 2017-08-01
    • 2020-11-23
    • 1970-01-01
    • 2021-07-25
    • 2012-07-07
    • 1970-01-01
    • 2023-03-29
    相关资源
    最近更新 更多