Question: I have added HTML to my page using the .after() method using HTML that is retrieved from a .GET() 'Ajax' call.

I have a button in my retrieved HTML and an event that is set to be triggered when this button is clicked. However the method that handles the .click event is never triggered. When I put the same button into my 'normal' html however the method is triggered and the .click() works fine.

This happens in both Mozilla and Firefox. What can I do to get the retrieved button to be recognised by jQuery? I have all my code within the $(document).ready(function() { ... will this have any affect?

Answer: 
Use [.live('click', fn)](http://docs.jquery.com/Events/live) instead of .click(fn) to wire up your event handler. A regular .click(fn) wireup in $(document).ready() will only affect elements in the DOM during the initial page load.
Try `$("#btn").live("click", function(){...})` instead of `$("#btn").click(function(){...})`