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

val() example application in jQuery_jquery

WBOY
WBOYOriginal
2016-05-16 16:58:071329browse

1、实例源码

复制代码 代码如下:





jQuery中的val()














篮球
足球
排球







2、结果如下

(1)选中所有的

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

(2)选中部分

依次弹出相应的值

(3)全不选

不弹窗口
Statement:
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