[jQuery] [jquery] what if the button wasn't there when the page loaded?
suppose we have some content to a page that gets loaded via AJAX in
response to some other event ... it looks like this :
<input type="button" id="some_new_button">
how do I bind to this, in a simple way?
$(function() {
$("#some_new_button").click( function() { ... };
});
doesn't work because the button didn't happen until after the doc loaded ...
any ideas?
--
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/