title: How to dynamically load Content in Div with Jquery? (Code given)
body: <p>I want to have a overlay over my content site. So if somebody clicks on a link a article is loaded into the covering overlay Div</p>
  
  <p>Everything is working fine except the output is not working properly.</p>
  
  <pre><code>&lt;script language="javascript"&gt;
  
      $( ".iddd" ).click(function() {
      var aid = $(this).prop('id');
      $('#overlaycontent').load('http://www.example.com/overlay.php', { id: aid });
  
      });
  </code></pre>
  
  <p></p>
  
  <p>Test PHP Script:</p>
  
  <pre><code>&lt;?php 
  
  include ("config.php");
  $ID = $_POST['id'];
  
  echo $ID;
  
  ?&gt;
  </code></pre>
  
  <p>That´s how my links are placed:</p>
  
  <pre><code>&lt;a class="iddd" href="#overlay" id="6337cab172"&gt;
  </code></pre>
  
  <p>The id should be loaded into the script so I can access my articles but i guess the Jquery is not working properly.</p>
  
  <p>I looked at this <a href="https://stackoverflow.com/questions/38779042/overlay-with-dynamic-php-content-the-right-way">overlay with dynamic php content the right way?</a></p>
  
  <p>but still it doesnt post the ID properly!
      </p>