I’ve got a cookie and I need to pull it’s values and run a function on each of them. Not sure about how to separate the values… so here’s what I’m working with:
var cookie = [1,2,3],
val = cookie.methodThatSplitsEachValueIntoASeparateObject;
val.each(function(){
//I'm running on 1, 2, and 3!
});
Simple
forloop:jQuery
each()method: