$(document).ready(function(){ $("#plus").click(function(){ document.getElementById('loading').style.visibility = 'visible';document.getElementById('likebox').style.visibility = 'hidden'; $.get("../../pr.php?a=1&id=1057792a1c0d54f03509aff01203c06f&o=1&lang=en", function(data, status){ document.getElementById('likebox').innerHTML = data; document.getElementById('loading').style.visibility = 'hidden';document.getElementById('likebox').style.visibility = 'visible'; }); }); $("#minus").click(function(){ document.getElementById('loading').style.visibility = 'visible';document.getElementById('likebox').style.visibility = 'hidden'; $.get("../../pr.php?a=1&id=1057792a1c0d54f03509aff01203c06f&o=0&lang=en", function(data, status){ document.getElementById('likebox').innerHTML = data; document.getElementById('loading').style.visibility = 'hidden';document.getElementById('likebox').style.visibility = 'visible'; }); }); $("#damaged").click(function(){ document.getElementById('loading').style.visibility = 'visible';document.getElementById('damagedfile').style.visibility = 'hidden'; $.get("../../damaged.php?id=1057792a1c0d54f03509aff01203c06f&lang=en", function(data, status){ document.getElementById('damagedfile').innerHTML = data; document.getElementById('loading').style.visibility = 'hidden';document.getElementById('damagedfile').style.visibility = 'visible'; }); }); });