What does your JSON array look like? On Mon, Jan 11, 2010 at 9:23 PM, Randall Morgan <rmorga...@gmail.com> wrote:
> Hello, > > I'm still pretty new to JQuery and I need to figure out how to loop > over a json array and assign the array values to each of a list of > divs. What I need to do is fill each filmstrip-cell with an image tag > and set the source to the current value in the array. The array > contains urls for each of 35 images. > > My code is similar to: > > <div id="filmstrip" class="filmstrip"> > <div id="1" class="filmstrip-cell" > </div> > <div id="2" class="filmstrip-cell" > </div> > <div id="3" class="filmstrip-cell" > </div> > <div id="4" class="filmstrip-cell" > </div> > ... > <div id="35" class="filmstrip-cell" > </div> > </div> > > > -- > If you ask me if it can be done. The answer is YES, it can always be > done. The correct questions however are... What will it cost, and how > long will it take? > -- John Arrowwood John (at) Irie (dash) Inc (dot) com John (at) Arrowwood Photography (dot) com John (at) Hanlons Razor (dot) com -- http://www.irie-inc.com/ http://arrowwood.blogspot.com/