Jquery stop load function after too many clicks
        Posted  
        
            by Sergio
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Sergio
        
        
        
        Published on 2010-05-10T12:05:26Z
        Indexed on 
            2010/05/10
            12:14 UTC
        
        
        Read the original article
        Hit count: 361
        
jQuery
How can I stop loading function after user is clicked too many times on link?
Jquery code looks like:
$(document).ready(function(){
$(".menu_rfr").click(function() {
$("#main").html('<img src="img/spin.gif" class="spin">');
location.replace($(this).attr('rel'));
});
$(".menu_clickable").click(function() {
$("#main").html('<img src="img/spin.gif" class="spin">');
$("#main").load($(this).attr('rel'));
});
});
© Stack Overflow or respective owner