title: Jquery function doesn't work after Ajax call
body: <p>I've got this function:</p>
  
  <pre><code>$(document).ready(function() {
  $('.post_button, .btn_favorite').click(function() {
  
  
  //Fade in the Popup
  $('.login_modal_message').fadeIn(500);
  
  // Add the mask to body
  $('body').append('&lt;div class="overlay"&gt;&lt;/div&gt;');
  $('.overlay').fadeIn(300);  
  return false;
  });
  </code></pre>
  
  <p>My page loads content with favourite buttons, but after Ajax call and generated additional new content the function doesn't work when you click new content's buttons. What could be not right?</p>