I As you can see, if you check 'A' box, then it hides 'A', 'AB', 'AC' and 'ABC'. Although the user thinks that any So if the user chooses to hide 'A' , Then only hide 'A' , since it's just 'A', and 'B' and 'C' Also, the only one that wants to show the user is showing the following: 'B', 'C', 'AB', 'AC', 'BC', 'ABC' / P> . If 'A' and 'B' are selected to hide the user, then the following will be hidden: 'C', 'AC', 'BC' and 'A', ' B ',' AB 'ABC' , because they have a 'C' class characteristic. I am assuming that I have to make an array or something similar, and then have to look for any attribute within the array, and hide them accordingly Here's a way to do this with a little less code: ( 'Change', function () {var notSelectedList = $ ('Form input: no (checked') '). Map (function () ($') '$' (This) .attr ('name'); $ ('.view li'). (Function () {$ (t of) .toggle ($ (this) .is (notSelectedList);}) ; });a???? This works by creating a comma separated list of squares that are not hidden, then checks all the list items for any of these sections - which are slightly The easiest way I think is checking that. & lt; Li & gt; Features are visible with 'B' and 'C', and 'AB', 'AC' and 'ABC' are hidden
and
Comments
Post a Comment