title: AJAX call successful, but not replacing div as expected
body: <p>After much Googling, I'm on the cusp of success (I think).</p>
  
  <p>I have a fairly large page, overview.php that contains the following snippets:</p>
  
  <pre><code>&lt;script&gt;
    function getSummary(id)
    {
       $.ajax({
         type: "GET",
         url: '_table_category.php',
         data: "catid=" + id, 
         success: function(data) { 
              $('#summary').html(data);
              alert('Successfully called');
           },
           error: function(jqxhr, status, exception) {
               alert('Exception:', exception);
           }
       });
    }
  &lt;/script&gt;
  </code></pre>
  
  <p>Down the page, I iterate over an array and populate a table. The first column is as follow:</p>
  
  <pre><code>&lt;td&gt; &lt;a onclick="getSummary('&lt;?php echo $expenses[$k]['categoryid']; ?&gt;')"&gt; &lt;?php echo $expenses[$k]['shortdesc']; ?&gt; &lt;/a&gt;  &lt;/td&gt;
  </code></pre>
  
  <p>And then further down on the page, there is a div that will contain the details:</p>
  
  <pre><code>      &lt;div class="box"&gt;
          &lt;div class="box-header"&gt; &lt;h3 class="box-title"&gt; Details &lt;/h3&gt; &lt;/div&gt;
          &lt;div class="box-body"&gt; 
            &lt;div id="#summary"&gt; Select a category to see the details. &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
  </code></pre>
  
  <p>No errors upon loading the page, nor by clicking on the 'link'. If I click on the link, it pops up with the 'Successfully called' alert as expected.</p>
  
  <p>Looking in the Network tab of the developer tools in Chrome, it calls the _table_category.php page (with a value for catid), and if I click on the link it lists (for example _table_category.php?catid=35), the HTML in the preview pane is correctly formatted HTML. 
  If I then paste the HTML inside the div manually, it looks exactly as hoped.</p>
  
  <p>This makes me think I am missing something fairly obvious and I am just not actually replacing the div with the result?</p>