I have a group of checkboxes that when clicked add an attribute to an array. The problem is i want to filter through links that have a specific attribute that i just added to that array.
So i have an array that could have ["filter-F_0", "filter-F_1"] etc... Now the code below only works if only one checkbox is clicked so my array would be ["filter-F_0], but once there are more i'm lost. Should i be doing this in a loop instead?
var arr = filterArray.join(",")
$(".appLink").filter("[" + arr + "]").css({
borderColor : 'red',
borderWidth : '1px',
borderStyle : 'solid'
});
I set up a simple example below to hopefully help explain what i am trying to do
[filter-F_0,filter-F_0]is invalid