title: The value of span is not changing
body: <p>Why this code is not working? I'm trying to change the value of span.</p>
  
  <pre><code>function timer(){
      var timer = $('#timer').val();
      if(timer!=''){
      $('#timer').html('HALO');
      }
  }
  
  timer();
  setInterval(timer, 100);
  
  &lt;span id="timer"&gt;&lt;/span&gt;
  </code></pre>