title: How to put a degree symbol in an html input field through javascript
body: <p>I have a text box as </p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;input type="text" id="lat" placeholder="Latitude" ng-lat value="9&amp;#176;"&gt; 
  </code></pre>
  
  <p>which works fine as it displays the degree sign perfectly, but when I try to set the value through jquery like </p>
  
  <p><strong>Jquery</strong></p>
  
  <p><code>$("#lat").val("9&amp;#176;")</code></p>
  
  <p>Its displaying the entire text instead of the degree symbol.</p>