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
You could also just throw a class on the anchor tag and check on click:
$('a.button').click(function(){ if($(this).hasClass('clicked')) return false; else { $(this).addClass('clicked'); return true; } });
With the class, you can do some extra styling to the link after the first click.