Home > Web Front-end > JS Tutorial > val() example application in jQuery_jquery

val() example application in jQuery_jquery

WBOY
Release: 2016-05-16 16:58:07
Original
1325 people have browsed it

1、实例源码

复制代码 代码如下:





jQuery中的val()














篮球
足球
排球







2、结果如下

(1)选中所有的

依次弹出“篮球、足球和排球”

(2)选中部分

依次弹出相应的值

(3)全不选

不弹窗口
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template