title: Using jQuery to set value after SPAN element
body: <p>How can I put AJAX data in after a <code>&lt;/span&gt;</code>?</p>
  
  <pre><code>$(function () {
    function check_messages() {
      $.ajax({
        url: '/check/',
        cache: false,
        success: function (data) {
          $('.here').text(data)
          complete: function () {
            window.setTimeout(check_messages, 20000);
          }
      });
    };
    check_messages();
  });
  </code></pre>
  
  <pre class="lang-html prettyprint-override"><code>&lt;button type="button" class="navbar-toggle collapsed msg" data-toggle="collapse" data-target="#search"&gt;
    &lt;span class="glyphicon glyphicon-envelope here" aria-hidden="true"&gt;&lt;/span&gt;
    HERE ajax data
  &lt;/button&gt;
  </code></pre>