title: How to change div color when click on another div using jquery?
body: <p>am new to jquery. i have some colors inside of a div. if i click on any one of color it should affect on another div's background color.i'm getting these colors from database. how to make it?</p>
  
  <p>ex: </p>
  
  <pre><code>&lt;?php
    $result = dbclass::convert_array($res);// retrieving colors here
    for($i = 0; $i &lt; $rows; $i++)
    { ?&gt;
     &lt;div id="Color" style="background-color:&lt;?php echo $result[$i][1];?&gt;; width:32px;  height:26px;" onclick="changeColor(&lt;?=$result[$i][1];?&gt;)"&gt;
    &lt;/div&gt;
    &lt;? 
    }
    ?&gt;
  
    &lt;div id="changableColor" style"background-color:#FFFFFF;"&gt; &lt;/div&gt;
  
  function changeColor(newColor)
  {
     $(#changableColor) // then how to write?
  }
  </code></pre>
  
  <p>i need to change the background color of "id=changableColor".intially it have white background color?</p>
  
  <p>Thanks.</p>