title: Getting values of elements inside a div tag
body: <p>I have multiple div tags with different ids on a page with the following property:.</p>
  
  <pre><code>&lt;div class="alert alert-info" id="1"&gt;
                      &lt;p&gt;&lt;b&gt;&lt;span class="adName"&gt;Name&lt;/span&gt;&lt;/b&gt;&lt;br&gt;
                      &lt;span class="ad1"&gt;address1&lt;/span&gt;&lt;br&gt;
                      &lt;span class="ad2"&gt;address2&lt;/span&gt;&lt;br&gt;
                      &lt;span class="ad3"&gt;address3&lt;/span&gt;&lt;br&gt;
                      &lt;span class="adCity"&gt;city&lt;/span&gt;&lt;br&gt;
                      &lt;span class="adState"&gt;state&lt;/span&gt;&lt;br&gt;
                      &lt;span class="adPin"&gt;pincode&lt;/span&gt;&lt;br&gt;
                      Ph no :&lt;span class="adPhone"&gt;phone&lt;/span&gt;&lt;br&gt;
                  &lt;/p&gt;
  &lt;/div
  </code></pre>
  
  <p>I want to get the values inside the span tags when a particular div is clicked. How can I idntify the div which is clicked and then get its contents?</p>