I have a "Y.php" file that returns in one of the inputs, the resulting calculation of other inputs inside this same file, I do this using Jquery and it is running 100%.
However, I would like to use the result of this calculation that is stored in variable "X" in another input contained in the "Z.php" file. That is, I want to use the value of this input (contained in "Z.php") as a result of another input contained in the file "Y.php".
How do I do this with JavaScript?
require ('apNaoCirculantes.php'); //arquivo onde está a input na qual desejo pegar o valor
var totaldeparred; // é o variável da input
var campo16; // já estou no arquivo Z.PHP
campo16 === totaldeparred;
$("#depreciacao1").maskMoney('mask', totaldeparred); //minha input #depreciacao1 recebe o valor contido em totaldeparred
Is that it?