Suppose there is a div containing some 'li' elements. when I click on a checkbox, some elements(li) get selected.I want to select all the li having some specific attributes from the li's which are visible in the div.
For example below, suppose that only first three li's are visible, I want to select li having value=ItemA and color=Red.