title: Set ASP Literal text with Javascript
body: <p>I have an asp:Literal on my page (<strong>which cannot be converted to a Label or any other control</strong>) that I need to change the text of via JavaScript. I have the following code that works for a <em>Label</em>. Can anybody help?</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
          function changeText() {
              document.getElementById('&lt;%= Test.ClientID %&gt;').innerHTML = 'New Text';
          }
      &lt;/script&gt;
  
          &lt;a href="#" onclick='changeText()'&gt;Change Text&lt;/a&gt;
          &lt;asp:Label id="Test" runat="server" Text="Original Text" /&gt;
  </code></pre>
  
  <p>Thanks
  <hr>
  <strong>UPDATE:</strong>
  I cannot change from a literal as the code behind writes HTML/CSS to it for an Information Message e.g:</p>
  
  <pre><code>LITMessage.Text = "&lt;div class='success'&gt;Information Successfully Updated&lt;/div&gt;"
  </code></pre>