title: How to get first span element of a div and change class using jQuery
body: <p>I have a div with a span</p>
  
  <pre><code>&lt;div id="div1"&gt;
      &lt;span class=""&gt;hello&lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>When i click on div i want to change the class of only first span element of the div</p>
  
  <pre><code>$('#div1').click(function() {
      // ... check if first span element inside the div .. if there and change the class..    
  });  
  </code></pre>