jQuery Dynamic Button Click Handler
Posted
by Neb
on Stack Overflow
See other posts from Stack Overflow
or by Neb
Published on 2010-06-09T20:18:21Z
Indexed on
2010/06/09
20:22 UTC
Read the original article
Hit count: 262
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!");
});
© Stack Overflow or respective owner