I have 50 dynamically generated HTML buttons as follows:
Try
$(".btn").click(function() { // Do something });