title: How to get span tag inside a div in jQuery and assign a text?
body: <p>I use the following ,</p>
  
  <pre><code>&lt;div id='message' style="display: none;"&gt;
    &lt;span&gt;&lt;/span&gt;
   &lt;a href="#" class="close-notify"&gt;X&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Now i want to find the span inside the div and assign a text to it...</p>
  
  <pre><code>function Errormessage(txt) {
      $("#message").fadeIn("slow");
      // find the span inside the div and assign a text
      $("#message a.close-notify").click(function() {
          $("#message").fadeOut("slow");
      });
  }
  </code></pre>