I have a code the change the html of a div to make a button. When I make a click handler for the dynamic button, nothing happens
$('#signinup').html("<button id=\"login_submit\">Sign In</button>");
And the handler:
$('#login_submit').click(function() {
alert("Works!");
});