I have a large list of elements with data attributes.
<ul>
<li data-brandid="1" data-finishid="5" data-typeid="10" data-constructionid="14">
<li data-brandid="4" data-finishid="1" data-typeid="3" data-constructionid="7">
<li data-brandid="18" data-finishid="2" data-typeid="1" data-constructionid="4">
<li data-brandid="7" data-finishid="4" data-typeid="4" data-constructionid="5">
<li data-brandid="4" data-finishid="8" data-typeid="1" data-constructionid="2">
<li data-brandid="2" data-finishid="12" data-typeid="2" data-constructionid="16">
</ul>
At the top of the page, I have a form with checkboxes for each option for each attribute. They can select multiple options for each data attribute. So, for example, if they selected brandsid's 2 and 5, finishid's 1 and 4, typeid's 4 and 2 and constructionid's 1 and 14 the pseudocode(SQL style) would look something like this:
AND (brandid = 2 OR brandid = 5)
AND (finishid = 1 OR finishid = 4)
AND (typeid = 4 OR typeid= 2)
AND (constructionid = 1 OR 14)
But I'm not sure how to turn this into a jquery selector.
Thanks.