jQuery :reset 选择器
1. 范例
选择 type="reset" 的 <input> 和 <button> 元素:
$(":reset")
2. 定义和用法
:reset 选择器选取类型为 reset 的 <button> 和 <input> 元素。
语法
$(":reset")
3. 提示和注释
提示:通过该选择器使用 input:reset 不会选择 <button> 元素。
1. 范例:选择 type="button" 的 <button> 元素和 <input> 元素。2. 定义和用法::button 选择器选取类型为 button 的 <button> 元素和 <input> 元素。语法:$(":button")。