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

查看所有标签

CSS

CSS

David Sawyer McFarland / O'Reilly / 2006-08-24 / USD 34.99

Book Description Web site design has grown up. Unlike the old days, when designers cobbled together chunky HTML, bandwidth-hogging graphics, and a prayer to make their sites look good, Cascading St......一起来看看 《CSS》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具