title: Change div content based on mouse hover on different divs
body: <p>Hi this question is sort of building off of this previous question <a href="https://stackoverflow.com/questions/3920691/mouseover-changes-text-inside-separate-div">mouse hover changes text inside separate DIV</a> asked by someone else.</p>
  
  <p>Only I believe the original poster was asking for multiple hovers and no one seemed to understand the request.. I believe I'm looking for what he was looking for so i'll try to explain it best a I can.</p>
  
  <p>say I have a div</p>
  
  <pre><code>&lt;div id="content"&gt;Descriptions should appear here&lt;/div&gt;
  </code></pre>
  
  <p>and a list of links positioned anywhere else on the page with it's own descriptions (only the list is visible not the descriptions)</p>
  
  <pre><code>foo = bar and stuff
  apples = a red fruit
  keyboard = thing you type with
  boat = floats on water
  </code></pre>
  
  <p>How would I make it so that if someone hovered over one of the links, the description would then be shown in the content div?</p>
  
  <hr>
  
  <p>Thanks for all the replies! In the end, this is what I went with:</p>
  
  <p>javascript:</p>
  
  <pre><code>&lt;script&gt;
      function changeContent(description) {
          console.log(description);
          var MyDesc = document.getElementById(description);
          document.getElementById('content').innerHTML = MyDesc.value;
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>html:</p>
  
  <pre><code>&lt;div id="content"&gt;&lt;/div&gt;
  
  &lt;a onmouseover="changeContent('desc1')" href="#"&gt;Apples&lt;/a&gt;
    &lt;input type="hidden" id="desc1" value="apples are delicious"&gt;
  &lt;a onmouseover="changeContent('desc2')" href="#"&gt;Oranges&lt;/a&gt;
    &lt;input type="hidden" id="desc2" value="Oranges are healthy"&gt;
  &lt;a onmouseover="changeContent('desc3')" href="#"&gt;Candy&lt;/a&gt;
    &lt;input type="hidden" id="desc3" value="Candy is tasty!"&gt;
  </code></pre>
  
  <p>having a separate input for the description leaves me the option to movie it around if need be. Thanks again for all the great answers!</p>