TUTORIAL前端与浏览器FETCHED
jQuery :submit 选择器
jQuery :submit 选择器 jQuery 选择器 实例 选取带有 type='submit' 的 <input> 和 <button> 元素: $(':submit') 尝试一下 » 定义和用法 :submit 选择器选取带有 type=submit 的 button 和 input 元素。..
更新于 2026/7/16
教程详情页默认 noindex。
jQuery :submit 选择器
定义和用法
:submit 选择器选取带有 type=submit 的 button 和 input 元素。
如果 button 元素没有定义类型,大多数浏览器会把该元素当作类型为 submit 的按钮。
提示:通过该选择器使用 input:submit 不会选取 button 元素。
语法
$(":submit")
jQuery 选择器