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
Yeah, set a value to keep track of this:
$("a").click(function (){ if( $(this).data("clicked") ){ return false; } $(this).data("clicked", true); return true; });