var prev = b - 1;
var previousImage = $('.header ul.active').find($('li[rel=prev]'));
The 1st variable is an integer being deducted by 1.
The next variable named previousImage is what i’m having trouble with. Each one of the lis within the previousImage has a rel tag. Each increasing by 1. I just want to select that li with a rel tag of the number (in this case a variable).
Can someone please explain to me exactly how to use the [rel=ATTRIBUTE] selector?
Note that The [attribute=value] selector requires the value Part to Be wrapped in double quotes like so: