TUTORIAL前端与浏览器FETCHED

jQuery :button 选择器

jQuery :button 选择器 jQuery 选择器 实例 选取带有 type='button' 的 <button> 和 <input> 元素: $(':button') 尝试一下 » 定义和用法 :button 选择器选取带有 type=button 的 button 和 input 元素。..

更新于 2026/7/16

教程详情页默认 noindex。

jQuery :button 选择器

jQuery 选择器 jQuery 选择器

实例

选取带有 type="button" 的 <button> 和 <input> 元素:

$(":button")

尝试一下 »

定义和用法

:button 选择器选取带有 type=button 的 button 和 input 元素。

提示:通过该选择器使用 input:button 不会选取 button 元素。


jQuery 选择器 jQuery 选择器