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://codercto.com/courses/l/35.html

查看所有标签

Learning Web Design

Learning Web Design

Jennifer Niederst Robbins / O'Reilly Media / 2007-6-15 / USD 44.99

Since the last edition of this book appeared three years ago, there has been a major climate change with regard to web standards. Designers are no longer using (X)HTML as a design tool, but as a means......一起来看看 《Learning Web Design》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

SHA 加密
SHA 加密

SHA 加密工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具