jQuery :submit 选择器

jQuery 教程 · 2019-03-10 18:28:06

实例

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

$(":submit")

定义和用法

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

如果 button 元素没有定义类型,大多数浏览器会把该元素当作类型为 submit 的按钮。

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

语法

$(":submit")

点击查看所有 jQuery 教程 文章: https://www.codercto.com/courses/l/35.html

查看所有标签

Masterminds of Programming

Masterminds of Programming

Federico Biancuzzi、Chromatic / O'Reilly Media / 2009-03-27 / USD 39.99

Description Masterminds of Programming features exclusive interviews with the creators of several historic and highly influential programming languages. Think along with Adin D. Falkoff (APL), Jame......一起来看看 《Masterminds of Programming》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具