Sorry, I should probably add, it's not actually a button. It's an <a href="whatever.php" class="btn">
On May 27, 2:05 pm, Fluffica <thomas.james.winstan...@googlemail.com> wrote: > Good Afternoon (or morning depending on where you are). > > I really hate posting probably quite simple questions to forums, but > this is really foxing me. > > $(".btn").click(function(){ > //.btn is now NOT clickable > $("#somethingElse").doStuff("slow", function(){ > //.btn is now clickable > }); > } > > I've got a long navigation, and pages slide in and out of view. > Troubles are, if the user impaitently clicks a load of links while the > page loading and sliding in is happening, it melts my (probably poorly > written) code. > > So, I'm trying to stop the user from clicking on any other buttons, > while the page loader is doing it's thing.