title: How to set div value
body: <p>How do I set the value/text of a <code>div</code>?</p>
  
  <pre><code>&lt;div id="numberOf"&gt;&lt;/div&gt;
  
  $("#btn").click(function (event) {
    $.getJSON('http://host/myServiceImpl.svc/GetCount?method=?',
      { id '1' },
      function (data) {
        alert(data);
        $("#numberOf").val = data;
      }
    );
  });
  </code></pre>