8 yuan red">
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
8元 红豆沙
5元 青菜肠
2元 加底 7元 鸡蛋青菜粥
6元 白灼鲜蔬菜 7元 黄金南瓜粥
3元 卤蛋
<input type="button" value='全选' id='selectAll'>13 <input type="button" value='全不选' id='unselectAll'>14
<input type="button" value='反选' id='reverse'>15 <input type="button" value='获得选中的值' id='getnum'>16 div>
1 2
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!