I am facing an issue with some checkboxes as I am unable to filter them based on whether they are checked or not.
The concept is simple. When I click on "All", all the checkboxes should be displayed. However, when I click on "Selected", only the selected checkboxes should be visible while the unchecked ones should be hidden.
Below is a code snippet that needs updating in your response to demonstrate how this can be achieved:
Thank you!
//array of options
var choices = new Array();
choices[0] = "January";
...
...
* {
box-sizing: border-box;
}
#data {
padding:5px;
width:100vw;
}
...
...
...
<span onclick="">All</span> | <span onclick="">Selected</span>
...
...
...