So, if a user clicks a button, I set a function to create a new class like
$("#container").html('<a href="" class="new_button">Click</a>'); and I preloaded ( which means, this function existed before the button was created) a function like $(".new_button").click(function(){ alert('succeed'}); When I click the button, nothing happens. I also used $ (".new_button").addClass functionalitiy to test it.. What would be the ideal solution in this case?