Skip to content
Advertisement

Select odd checkboxes

Select odd check boxes please help me with the code

JavaScript

Advertisement

Answer

You can use the li:nth-child(odd) then set the checked attribute to true for those selected checkboxes.

This is an example:

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement