jQuery :checked 选择器
实例 Run this code » 选取所有被选中的元素(复选框或单选按钮): $(":checked") 定义和用法 :checked 选择器选取所有选中的复选框或单选按钮。 语法 $(":checked")
实例 Run this code » 选取所有被选中的元素(复选框或单选按钮): $(":checked") 定义和用法 :checked 选择器选取所有选中的复选框或单选按钮。 语法 $(":checked")
实例 Run this code » 选取下拉列表中预先选定的项: $(":selected") 定义和用法 :selected 选择器选取预先选定的选项元素。 注释:该选择器不适用于复选框或单选按钮。请使用 :checked 选择器代替。...
实例 Run this code » 选取所有禁用的表单元素: $(":disabled") 定义和用法 :disabled 选择器选取所有禁用的表单元素。 语法 $(":disabled")
实例 Run this code » 选取所有启用的表单元素: $(":enabled") 定义和用法 :enabled 选择器选取所有启用的表单元素。 语法 $(":enabled")
实例 Run this code » 选取带有 type="file" 的 <input> 元素: $(":file") 定义和用法 :file 选择器选取带有 type=file 的 input 元素。 语法 $(":file...
实例 Run this code » 选取带有 type="image" 的 <input> 元素: $(":image") 定义和用法 :image 选择器选取带有 type=image 的 input 元素。 语法 $(":...
实例 Run this code » 选取带有 type="button" 的 <button> 和 <input> 元素: $(":button") 定义和用法 :button 选择器选取带有 type=butto...
实例 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...