$(document).ready(function(){ $("#plus").click(function(){ document.getElementById('loading').style.visibility = 'visible';document.getElementById('likebox').style.visibility = 'hidden'; $.get("../../pr.php?a=1&id=93bf166fa57aa2f963d97c424a092289&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=93bf166fa57aa2f963d97c424a092289&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=93bf166fa57aa2f963d97c424a092289&lang=en", function(data, status){ document.getElementById('damagedfile').innerHTML = data; document.getElementById('loading').style.visibility = 'hidden';document.getElementById('damagedfile').style.visibility = 'visible'; }); }); });