-1
I have the following problem, I cannot run Javascript commands from PHP.
Page check time.php
<?php
echo 'alert("teste")';
?>
Page index php.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
$.ajax({
url: 'verificar-horario.php',
type: 'GET',
data: dados,
success: function (data) {
return data;
}
});
</script>
I actually put an Alert as an example, but actually I’d like to call another code.
– Kauan Douglas
I understand, that answer here is quite complete about https://answall.com/a/58965/139524
– Tales