【问题标题】:Not showing dropdown menu, and "Nothing Selected" message showing in title, please check code未显示下拉菜单,并且标题中显示“未选择”消息,请检查代码
【发布时间】:2022-02-14 16:13:18
【问题描述】:

我正在尝试自动选择下拉菜单中的选项,但它没有显示下拉菜单并且显示 title="Nothing Selected"。在我的代码中我写了opt.setAttribute("selected", "selected");

【问题讨论】:

标签: javascript java html jquery bootstrap-4


【解决方案1】:

要将选项设置为选中,您只需要 selected not selected="selected"。

【讨论】:

    猜你喜欢
    • 2012-11-17
    • 2022-11-22
    • 1970-01-01
    • 1970-01-01
    • 2021-03-07
    • 2023-03-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多