title: jQuery calling function from newly loaded div
body: <p>I have new div I am loading into my main page called "Next". The "Next" div is a button that is on a page called Story.php I am loading it with this code.</p>
  
  <pre><code>$('.CoolBox').load('Story.php', function() 
      {
   /// The "Next div" is NOW on display but not recognized by main page that loaded it.
      });
  </code></pre>
  
  <p>But if I try to make the "Next" div call a function or clickable it does not work.</p>
  
  <pre><code>$("#Next").click(function() 
      {
  /// Run my code. Call a function?
  
      });
  </code></pre>
  
  <p>I realize there  are two options. Put the code in the page I am loading so the jQuery can see the "Next" div. I did that and it works fine when I load the "Story.php" page alone, but when I load that page into the main page it no longer works. </p>
  
  <p>This same concept I need to apply to functions as well. How can I create functions that call divs that are not yet loaded on to the page?</p>
  
  <p>Would I put the functions in the Story.php that can access the divs on that page or do I put the functions on the main page and somehow "register" the newly loaded divs?</p>
  
  <p>I am thinking I might be able to use something like...</p>
  
  <pre><code>document.getElementById("#Next") /// but what is the full code I use?
  </code></pre>
  
  <p><strong>UPDATE:</strong>
  The full code can be seen here on a page called testing.php
  <a href="http://beaubird.com/testing.php" rel="nofollow">http://beaubird.com/testing.php</a>
  Click on the first button called STORY. Then watch for a button at bottom called Next. This is also has a div name of "Next". I want the "Next" div to be able to load more of the story and control other elements on the page.</p>
  
  <p>On line #366 is where I call  this code:</p>
  
  <pre><code>$('.CoolBox').load('Story.php', function() 
                  {
          /// it loads this page http://www.BeauBird.com/Story.php
                  // Where the Next div is contained. 
                  });
          }
  </code></pre>
  
  <p>Any thoughts? Thanks so much! </p>