title: How to alternate style (background color ) for div different divs?
body: <p>How to alternate style (background color with jquery) for div inside div with id="container" alternately ( even and odd ) if I have HTML like this  </p>
  
  <pre><code>&lt;div id="container"&gt;
     &lt;div&gt;&lt;/div&gt; 
     &lt;div&gt;&lt;/div&gt;
     &lt;div&gt;&lt;/div&gt;
     &lt;div&gt;&lt;/div&gt;
  ...
  &lt;/div&gt;
  </code></pre>
  
  <p>I know with table like </p>
  
  <pre><code>  $('#container&gt;div:odd').css("background-color", "#ff0000");
    $('#container&gt;div:even').css("background-color", "#00ff00");
  </code></pre>
  
  <p>but the all the [divs] should have different colours...?no div should have the same colour ..can any one help me..</p>