问题描述
我的模态表单中列出了以下下拉字段。在此表单中,用户选择他们提交的数据的内容类型。每当我点击一个选项时,我的选择之后不会显示在框中,而是默认返回“内容类型”标签。
我将如何调整它以在您响应之前将“内容类型”显示为提示文本,然后在选择后将其更改为选定的选项?
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Content Type
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#">Microsoft Teams</a>
<a class="dropdown-item" href="#">Email</a>
<a class="dropdown-item" href="#">Meeting (Virtual)</a>
<a class="dropdown-item" href="#">Meeting (In-Person)</a>
</div>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)