I am relatively new to implementing JQuery throughout an entire system, and I am enjoying the opportunity.
I have come across one issue I would love to find the corr
I know this was answered long ago, but if you don't mind creating the button dynamically, this works using only the jQuery framework:
$(document).ready(function() {
$button = $('');
$('body').append($button);
$button.click(function() {
console.log("Id clicked: " + this.id ); // or $(this) or $button
});
});
And here is my HTML page:
Welcome!