jQuery :reset 选择器
实例 Run this code » 选取带有 type="reset" 的 <input> 和 <button> 元素: $(":reset") 定义和用法 :reset 选择器选取带有 type=reset 的 ...
实例 Run this code » 选取带有 type="reset" 的 <input> 和 <button> 元素: $(":reset") 定义和用法 :reset 选择器选取带有 type=reset 的 ...
实例 Run this code » 选取带有 type="submit" 的 <input> 和 <button> 元素: $(":submit") 定义和用法 :submit 选择器选取带有 type=submi...
实例 Run this code » 选取所有带有 type="checkbox" 的 <input> 元素: $(":checkbox") 定义和用法 :checkbox 选择器选取带有 type=checkbox 的 inp...
实例 Run this code » 选取所有带有 type="radio" 的 <input> 元素: $(":radio") 定义和用法 :radio 选择器选取带有 type=radio 的 input 元素。 语法 $(...
实例 Run this code » 选取带有 type="password" 的 <input> 元素: $(":password") 定义和用法 :password 选择器选取带有 type=password 的 input...
实例 Run this code » 选取带有 type="text" 的 <input> 元素: $(":text") 定义和用法 :text 选择器选取带有 type=text 的 input 元素。 语法 $(":text...
实例 Run this code » 选取所有 input 元素: $(":input") 定义和用法 :input 选择器选取表单元素。 该选择器同样适用于 button 元素。 语法 $(":input")
实例 Run this code » 通过复合选择器查找符合条件的输入框,并设置值。 定义和用法 [name="value"][name2="value2"] 是复合属性选择器,需要同时满足多个条件时使用。 语法 $( "[attribut...
实例 Run this code » 选取所有带有包含字符串 "nation" 的 name 属性的 <input> 元素: $("input[name*='nation']") 定义和用法 [attribute*=value]...
实例 Run this code » 选取所有带有包含单词 "nation" 的 name 属性的 <input> 元素: $("input[name~='nation']") 定义和用法 [attribute~=value] ...