Is there a way to show the result and then it will disappear after about 10 seconds or something using jQuery?
Here is the code.
function stop(){
$.ajax({
type: "GET",
url: "http://update.php",
data: "do=getSTOP",
cache: false,
async: false,
success: function(result) {
$("#rate").html(result);
},
error: function(result) {
alert("some error occured, please try again later");
}
});
return false;
}
$(document).ready(function() {
$('.rating li a, .srating li a').click(stop);
});
jsnag source
share