If i have a button pressed method like this:
$('#next').click(function () {
});
How can i stop this method being initiated whilst its running. Say the method takes 5 seconds to run and someone clicks it 3 seconds in it breaks so i want to make the div thats being clicked unclickable while the methods running.
Replace the clicked link with
<p>loading...</p>