Here is a fiddle to prove my point. When I use $(document).on("click"....), I can still click on tags inside a disabled button. This behavior does not occur with $("button").click(..
Can someone explain this discrepancy? Is it a bug, or a feature of jQuery?
Edit: The workaround I have come up with:
$(document).on("click", "button > *", function() {
if ( $(this).parent().is(":disabled") )
{
return false;
}
});
This must have been a bug with JQuery 1.7.1. If you move to 1.7.2 or 1.8, it goes away.