jQuery :selected 选择器

jQuery 教程 · 2019-03-10 20:12:09

实例

选取下拉列表中预先选定的项:

$(":selected")

定义和用法

:selected 选择器选取预先选定的选项元素。

注释:该选择器不适用于复选框或单选按钮。请使用 :checked 选择器代替。

语法

$(":selected")

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

查看所有标签

The Cult of the Amateur

The Cult of the Amateur

Andrew Keen / Crown Business / 2007-6-5 / USD 22.95

Amateur hour has arrived, and the audience is running the show In a hard-hitting and provocative polemic, Silicon Valley insider and pundit Andrew Keen exposes the grave consequences of today’s......一起来看看 《The Cult of the Amateur》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

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

HEX HSV 互换工具