<script>
$('.clas').click(function () {
$.ajax({
method: "GET",
cache : false,
url: "index.php?add_click",
success: function() {
location.reload(true);
}
})
});
</script>
<div class="clas">
$(document).ready(function(){
$('.clas').click(function () {
$.ajax({
method: "GET",
cache: false,
url: "index.php?add_click",
success: function(){
console.log('ok')
},
error: function(){
console.log('error')
}
});
});
});