title: How to identify a previous span element inside a div in java script
body: <p>In my application i have two div's. First div contains a span inside it. Second div is collection of 5 div element. While clicking any one of 3 div's in the second div i want to know/find the first div that is a id of span inside that div. Please any one help me to solve this.</p>
  
  <p><strong>EDITED:</strong>
  HTML</p>
  
  <pre><code>&lt;ul&gt;
  
    &lt;li&gt;
  
              &lt;div class="fleft"&gt;
                &lt;span id="user_id" class="no-class"&gt; User&lt;/span&gt;
              &lt;/div&gt;
               &lt;div style="display: inline-block;"&gt;                  
                    &lt;div class="info left no-class section"&gt;Jan&lt;/div&gt;
  
              &lt;/div&gt;
    &lt;/li&gt;
   &lt;li&gt;
  
              &lt;div class="fleft"&gt;
                &lt;span id="user_id" class="no-class"&gt; User&lt;/span&gt;
              &lt;/div&gt;
               &lt;div style="display: inline-block;"&gt;                  
                    &lt;div class="info left no-class section"&gt;Jan&lt;/div&gt;
  
              &lt;/div&gt;
    &lt;/li&gt;
  &lt;ul&gt;
  </code></pre>
  
  <p>JS</p>
  
  <pre><code>$('.info').click(function(event){
  });
  </code></pre>
  
  <p>Note:
  In my second div i have 3 elements (original code contains a loop to create 3 div's).In that div I m able to get the next and previous div using prev();, next();. But unable to find the span with id of user_id .</p>
  
  <p><strong>Edited:</strong>
  In one li i have two div's. 
  Div1</p>
  
  <pre><code>&lt;div class="fleft"&gt;&lt;span id="user_id_1"&gt;&lt;/span&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Div2</p>
  
  <pre><code> &lt;div class="right"&gt;
       &lt;div class="info left no-class section&gt; Jan&lt;/div&gt;
       &lt;div class="info left no-class section&gt; Feb&lt;/div&gt;
       &lt;div class="info left no-class section&gt; March&lt;/div&gt;
   &lt;/div&gt;
  </code></pre>
  
  <p>While clicking the Jan/Feb/March I want to know the id of span that is inside the DIV1.</p>
  
  <p>UpdtedFiddle: <a href="http://jsfiddle.net/uj8ox3o1/2/" rel="nofollow">http://jsfiddle.net/uj8ox3o1/2/</a></p>