Jquery: Appending Li If Variable Equals Other Variable
Trying to set up adding slides to flexslider 2 in shopify. EDITED THE CODE, to suggestions, but still no go. Basically, the idea is if variable equals another variable that is pick
Solution 1:
There are a lot of problems with your code. First of all you should be using the ==
or ===
operators, not the assignment operator =
. Second of all there are syntax errors.
$(".flexslider ul").append(...)
.
There are too many problems to list.
Also, variables should be introduced with var
, not the $ sign, e.g.
var show = 'block';
Post a Comment for "Jquery: Appending Li If Variable Equals Other Variable"