【发布时间】:2020-05-02 21:24:13
【问题描述】:
这是一个简单的问题,但我遇到了问题。如果选中单选按钮,我想更改网站 url。这是我的引导单选按钮。
<div class="btn-group btn-group-toggle" data-toggle="buttons">
<label class="btn btn-dark active">
<input type="radio" name="ai" id="option1" autocomplete="off" checked> Account Information
</label>
<label class="btn btn-dark">
<input type="radio" name="ps" id="option2" autocomplete="off"> Password And Security
</label>
<label class="btn btn-dark">
<input type="radio" name="c" id="option3" autocomplete="off"> Contact
</label>
</div>
【问题讨论】:
-
你的意思是在单选项目点击时重定向用户?
-
请向我们提供更多信息。您想更改页面还是只更改 URL 或使用 Ajax 加载页面?预期的行为是什么?
标签: javascript html css radio-button