title: After AJAX call specific button via jQuery not working
body: <p>I am trying to get this to work for a while now and dug around, but so far have found no solution.</p>
  <p><strong>CASE</strong></p>
  <p>I have a tree-view in which I can click on an item within that tree-view to load data in a couple of tab-panes. This works fine via AJAX.</p>
  <p>Other options, like changing data within the input files and automatically saving (using pretty much an <code>onkeyup</code> at the inputs) works fine too, no problem here.</p>
  <p>One of my tab-panes has a sidebar with a button, in which I want users to assign a profile to this data. The jQuery is as following:</p>
  <pre><code>$('#profiles').on(&quot;click&quot;, &quot;.content-container&quot;, function(e, data) { 
  
      e.preventDefault();
      
      console.log('i got hit in the face');
      
  });
  </code></pre>
  <p>This is in my <code>main.js</code> file.</p>
  <p>The rest of my 2000 lines work fine, so it isn't the JS file or the opening of jQuery.</p>
  <p>The <code>.content-container</code> is the static item in which I load my pane controls where, within, the underlying HTML has been placed.</p>
  <pre><code>&lt;div class=&quot;menu-section active&quot;&gt;
      &lt;ul class=&quot;nav side-menu&quot;&gt;
           &lt;li class=&quot;&quot;&gt;
               &lt;a href=&quot;http://localhost/etim&quot; id=&quot;profiles&quot; class=&quot;&quot;&gt;
                   &lt;i class=&quot;fa fa-puzzle-piece &quot;&gt;&lt;/i&gt;
               &lt;/a&gt;
           &lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  <p>For the sake of argument, this is the most basic I'll put down the button. You click on a href in that sidebar, and it should simply give me a <code>console.log</code> back.</p>
  <p>However, every time it refreshes the page since my href is being automatically filled with my standard URL (no # but a reference to localhost), hence the <code>e.preventDefault</code>. When I click on this button it fails to prevent the default action and reloads the page anyway.</p>
  <p>I thought I did everything right by assigning it to the <code>.on</code> since I know it will be placed later in the code, but apparently it still doesn't see it in my code.</p>