Good evening. Help to correctly send a variable from JavaScript to a PHP file.
function spin(id){ $('#ro').removeAttr('class'); setTimeout(function(){$('.spinpage').fadeOut('fast')},0); $.post('/ro.php', { id : id }, function(data){ var rol = data How to correctly transfer the rol variable to the qer.php file as a post request asynchronous. I tried to do it myself, but my script refused at all.