title: How can I change background color with jQuery?
body: <p>I have an array that looks like this:</p>
  
  <pre><code>tracker[0] = false
  tracker[1] = true
  tracker[2] = true
  tracker[3] = false
  </code></pre>
  
  <p>and some Div's on my form that look like this:</p>
  
  <pre><code>&lt;div id="tracker_0"&gt; &lt;/div&gt;
  &lt;div id="tracker_1"&gt; &lt;/div&gt;
  &lt;div id="tracker_2"&gt; &lt;/div&gt;
  &lt;div id="tracker_3"&gt; &lt;/div&gt;
  </code></pre>
  
  <p>What I need is to change the background color of my Div's to red or green depending on the value of my tracker array. This is an array that's a variable size. </p>
  
  <p>Can someone give me some pointers how I could do this using jQuery. I really have little experience with this so I would very much appreciate any help. </p>
  
  <p>thank you,  Marilou</p>