- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我使用的是 html5 单页模板....我有 3 个文本框、一个文本区域和一个清除按钮....3 个文本框和清除按钮在同一个 div 中....文本区域在另一个 div 中...我想通过单击清除按钮清除所有文本框,,,,在我的代码中,仅清除 3 个文本框...第 4 个文本框未清除..
<div>
<input name="subject" type="text" id="subject" placeholder="Your Subject">
<input name="email" type="text" id="email" placeholder="Your Email"">
<div>
<button type="reset" id="reset" value="Clear" >clear</button>
</div>
</div>
<div>
<textarea name="message" rows="10" class="form-control" id="message" >
<textarea>
</div>
我想通过这个清除按钮清除所有文本框请给出解决这个问题的方法....我是初学者!
谢谢你
最佳答案
您需要在表单标签内提供所有输入字段
<form>
<div>
<input name="subject" type="text" id="subject" placeholder="Your Subject">
<input name="email" type="text" id="email" placeholder="Your Email">
<div>
<textarea name="message" rows="10" class="form-control" id="message" > </textarea>
</div>
<div>
<button type="reset" id="reset" value="Clear" >clear</button> </div>
</div>
</form>
来自此引用:http://www.w3.org/TR/html5/forms.html#attr-button-type-reset-state
Reset Button If the element has a form owner and the element's Document is fully active, the element must reset the form owner. ... The form attribute is used to explicitly associate the button element with its form owner.
关于javascript - 如何在html中的不同部门调用一个id,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23927589/
我刚刚发现有关部门/领域的信息,并且有兴趣在未来的系统中使用它。 目前是否有人在生产系统中使用 sector/sphere (http://sector.sourceforge.net/)?如果有,您
此查询将返回错误(字段列表中未知列 numero_propostas)。我想要的是这样的: SELECT COUNT(*) as numero_propostas, total as t
我的代码: function ayee(){
有没有办法在事件目录中拥有多个经理和/或部门? 最佳答案 不,恐怕这是不可能的。根据标准的 Active Directory 架构,用户的“经理”属性是单值属性,例如它只能包含一个值(或不包含)。 退
当我在 Ubuntu 64 位中执行以下汇编代码时,出现浮点异常(核心转储)错误: #include int main() { int arg1, arg2, quo, rem ; pri
我有一个名为 home 的 CSS 部分,它具有某些属性,其中包含 home 部分内 anchor 标记的悬停操作,如下所示: #home a:hover { background-image:u
我正在构建一个系统,其中应该有一个包含组织、位置、部门和用户的数据库。它们按照您的预期连接起来: 每个组织可以包含一个或多个地点 每个地点(建筑物)可以包含一个或多个部门 每个部门工作一名或多名用户
这是我关于 stackoverflow 的第一个问题,所以请保持温和。我正在使用 MVC4、 Entity Framework 和 SimpleMembership 为仓库应用程序编写客户门户。仓库为
具有以下 Go 项目布局,在 lib 中具有共享库函数,在 cmd 中具有多个二进制文件,使用这些库函数并具有外部依赖性: root | lib cmd | bi
我有一个 .Net 应用程序,它通过 Microsoft 测试管理器和个人 ITestCaseResult 对在 TFS2010 中执行的测试进行后处理(手动)。实例确实有 TeamFoundatio
如何在这些路由上使用可选查询过滤器(例如“/employees?department=4”)并返回部门编号为 4 的数据 app.get("/employees", (req, res) => {
以下查询适用于一种分类法 SELECT * FROM bb_posts AS p LEFT JOIN bb_term_relationships AS r ON (p.ID = r.object_id
我想在不创建混合项目的情况下试用 Poison json 模块。 如何安装它并通过导入使其在 iex 中可用? 我已经能够将它添加到项目中,然后在进入项目目录并使用 iex -S mix 后使用它:
在部门表中,我有两个字段: documentid, which is INT jsondocument which is JSON 我执行了以下查询: INSERT INTO department V
我是一名优秀的程序员,十分优秀!