Skip to content Skip to sidebar Skip to footer

How Do I Set A Variable To Direct Alternative Classes?

This is a reposting of a previous question. Other question wasn't formulated good enough. I won't delete the other question, because it might be usable for others.Hello All,I have

Solution 1:

Your code looks ok apart for this line:

 $.cookie('bg_for_the_day', 'default', { path: '/', expires: 1 });

which should be:

 $.cookie('bg_for_the_day', default, { path: '/', expires: 1 });

so that the value of the cookie is your variable (in your code the value of the cookie is always "default"

Post a Comment for "How Do I Set A Variable To Direct Alternative Classes?"