【问题标题】:Bootstrap Dropdown in Table Detail表详细信息中的引导下拉列表
【发布时间】:2016-08-10 15:11:40
【问题描述】:

添加下拉菜单的正确方法是什么?我正在将此信息传递给 JS/PHP,其他一切都在工作......我希望尽可能少地改变!

    <table id="create">
    <thead>
    <tr>
        <th>Name</th>
        <th>Type</th>
        <th>Start</th>
        <th>End</th>
        <th>Active</th>
        <th></th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td><input style="min-width: 180px" class="form-control name" type="text" name="name" placeholder="Contest Name"></td>
        <td> BOOTSTRAP DROPDOWN </td>
        <td><input class="form-control start" type="date" name="start" placeholder="Start Date (mm/dd/yyyy)"></td>
        <td><input class="form-control end" type="date" name="end" placeholder="End Date (mm/dd/yyyy)"></td>
        <td><input class="form-control active" type="checkbox" name="active" value="1" CHECKED></td>
        <td><input class="btn btn-success create" type="button" name="create" value="Create"></td>
    </tr>
    </tbody>
</table>

【问题讨论】:

    标签: javascript html twitter-bootstrap twitter-bootstrap-3 html-table


    【解决方案1】:

    除非我遗漏了什么,否则这很简单since the documentation is found here。只需向下滚动到select 部分即可阅读相关内容。在您的表单中添加此代码。

    <select class="form-control">
      <option>1</option>
      <option>2</option>
      <option>3</option>
      <option>4</option>
      <option>5</option>
    </select>
    

    【讨论】:

    • 我第一次尝试这个时一定做错了什么!谢谢。我会看看我能用 JS/PHP 做些什么。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-08-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多