You can use timeout method, or maybe changing href attribute to href=""
$(".btn").click(function(){ var oriHref = $(this).attr('href'); //.btn is now NOT clickable $(this).attr('href' : ''); $("#somethingElse").doStuff("slow", function(){ //.btn is now clickable $('.btn').attr('href' : 'oriHref'); }); } On May 27, 3: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.