That's because events attached to any html elements do not apply to elements created dynamically. Use jQuery's "live" method to declare the click event for elements created dynamically. Refer to "live" here -
http://api.jquery.com/live/[
^]
In effect you would have to do something like this:
$('.btnEdits').live('click', function () {
alert("button clicked");
});
Hope this helps!