I am in the middle of a script of an html page, and what I need is to save in a variable what is in another html page. What I am doing is the following:
... más código...
var datos;
$.get('info/info_registros/','json', function(data){
datos = data;
});
... más código...
**Aquí necesito utilizar la variable datos con lo que hay en esa otra página.**
Doing this does not save anything in the data variable, which I need later in the script to use.
Some solution or another way of doing what I want. Thank you very much in advance