8 yuan red"> Share jquery all selection and inverse selection examples-JS Tutorial-php.cn

Share jquery all selection and inverse selection examples

零下一度
Release: 2017-06-26 10:19:52
Original
1367 people have browsed it

This demo is suitable for comrades who are just learning jQuery.

On average, I eat a certain Licun rice roll 4 times a week at night, so the content is the ones I often order at night. Usually I eat for 14 yuan.

The effect is as shown:

##HTML code:

 1 <ul id='food'> 2
Copy after login
8元 红豆沙
Copy after login
5元 青菜肠
Copy after login
2元 加底 7元 鸡蛋青菜粥
Copy after login
6元 白灼鲜蔬菜 7元 黄金南瓜粥
Copy after login
3元 卤蛋
Copy after login

<input type="button" value='全选' id='selectAll'>13 <input type="button" value='全不选' id='unselectAll'>14
Copy after login

<input type="button" value='反选' id='reverse'>15 <input type="button" value='获得选中的值' id='getnum'>16 div>


Copy after login

JS code:

1  2 
Copy after login

The above is the detailed content of Share jquery all selection and inverse selection examples. For more information, please follow other related articles on the PHP Chinese website!

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!