javascript - 我如何“提示”提交按钮,以便当我填写表格并单击输入时它会提示它?)(仅在 JavaScript 中完成,没有 HTML/CSS 或 PHP)
问题描述
<form>
<div class="nes-field">
<label>
I am interested in the following services (check all that apply):
</label>
<label>
<input type="checkbox" class="nes-checkbox" id="full_redesign" /><span>Full website redesign using an 8-Bit theme</span>
</label>
<label>
<input type="checkbox" class="nes-checkbox" id="sparkle" /><span>Sparkle cursors</span>
</label>
<label>
<input type="checkbox" class="nes-checkbox" id="blink" /><span>Blinking text to attract customers</span>
</label>
<label>
<input type="checkbox" class="nes-checkbox" id="music" /><span>Theme music to play when the user visits the page</span>
</label>
<label>
<input type="checkbox" class="nes-checkbox" id="colors" /><span>Really bright colors</span>
</label>
</div>
// here's the problem.
<button type="button" class="nes-btn is-primary">Submit</button>
</form>
我正在尝试使提交按钮起作用,因此每当您填写表格并按下提交时,它都会提示它。
解决方案
推荐阅读
- linux - 对于 Makefile 变量的每个目标
- macros - 具有返回值的 SAS 宏,之后有更多文本
- r - 如何将 HTML 文件从 R Studio 导出到 SharePoint?
- oop - 为什么 OOP 与过程式编程并列?
- wordpress - 如何删除在 wordpress 网站上注入的脚本:ads.voipnewswire.net?
- c# - DataGridVIEW 刷新 C# WinForms
- node.js - NodeJS Rest API 与 Firebase
- swift - 使用操作获取 CLLocation 数据
- gcc - 为什么使用 -l 时 gcc 会动态链接?
- azure - 插入或跳过 Azure 数据迁移工具的选项?