How would I disable all links with the button class after they are clicked once? I\'d like to be able to do this in one place, and not have to change all of the
button
Events are only bound on document.ready, you should handle this with a .live event:
$("a.button").live("click", function() { $(this).attr("disabled", "disabled"); }); $("a[disabled]").live("click", function() { return false; });