title: How to append variable content inside div with jquery?
body: <p>i have some content stored inside a variable and i want to append that content String inside a html div.</p>
  
  <p>This is the script code:</p>
  
  <pre><code> if ( $( "#eroare" ).val()!="") {
      alert("Error 2" + $( "#eroare" ).val());
      var aux = $( "#eroare" ).val();
      alert("aux="+aux);
      $( "#errorSuccess" ).html( "&lt;b&gt;" + aux + "&lt;/b&gt;"); //this is not working
  }
  </code></pre>
  
  <p>And this is the html:</p>
  
  <pre><code>&lt;div id="errorSuccess" &gt;ceva&lt;/div&gt;
  &lt;div&gt;&lt;input type="hidden" id="eroare" value="${sessionScope.errmsg}" /&gt;&lt;/div&gt;
  </code></pre>