<script type="text/javascript" language="javascript">
$(document).ready(function()
{
$("#confirm").submit(function()
{
var form = $(this);
$("#test").show("fast");
form.find('input[type="submit"]').attr('disabled', 'disabled');
var timerId = setTimeout(function(){
$.ajax({
url: '/assets/includs/payscript.php',
type: 'GET',
dataType: 'json',
success:function(json)
{
$('#test').html("Оплата прошла успешно!");
clearTimeout(timerId);
}
})},4);
});
});
</script>
$json = 'succses';
echo json_encode($json);