Home > Web Front-end > JS Tutorial > Practical script code for check boxes in javascript_javascript skills

Practical script code for check boxes in javascript_javascript skills

WBOY
Release: 2016-05-16 19:09:36
Original
809 people have browsed it

This is a very common effect on many websites, that is, clicking the checkbox of the general category will automatically select the checkboxes of all subcategories, or if all the checkboxes of the subcategories are selected, the general category checkbox will be selected. is also automatically selected.
I accidentally saw it on the msn website this time, so I tried to write it down myself.


[Ctrl A select all Note: If you need to introduce external Js, you need to refresh to execute
]
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