I have a div element that works as refresh button using jQuery. What I want to do is stop user pressing it all the time. Let's say I want to disable it for the next 15 seconds. How can I do that?
HTML PART
<div class="am_outter_div">
<div class="header">ΜΕΝΟΥ</div>
<div class="button_1">BACK</div>
<div class="button_2" id="am_refresh_button">REFRESH</div>
<div class="button_3">TOP</div>
<div class="button_4">NEXT</div>
</div><br><br>
<div id="av_refresh_div">Blah blah blah...</div>
JQUERY PART
var $JQ_ = jQuery.noConflict();
$JQ_(document).ready(function(){
$JQ_("#am_refresh_button").click(function(){
$JQ_("#av_refresh_div").load("index.php #av_refresh_div").fadeOut(1000).fadeIn(1000);});
});
Also JSFIDDLE here...