title: reading all spans of a div dynamically
body: <p>I have a div inside which i have number of spans. Now i want to read all text of all spans along with thrir id and populate it into a javascript map  where key = spanid and value =" text of span.How can i do it?</p>
  
  <pre><code>Eg &lt;div mydiv="xyx" &gt;   
       &lt;span id ="sp1" &gt; M/span&gt;
       &lt;span id ="sp2" &gt; M/span&gt;
       .... 
        ..
  
     &lt;/div&gt;
  </code></pre>
  
  <p>How can i populate the map?</p>