4
Suppose I use the following function in .js... And inside it there are some variables.
$(document).on("load", function(){
var Variavel1= "um";
var Variavel2= "dois";
var Variavel3= "tres";
var Variavel4= "quatro";
})
How do I use any of these variables outside of this function?
$(document).on("load", function(){
var Variavel1= "um";
var Variavel2= "dois";
var Variavel3= "tres";
var Variavel4= "quatro";
})
alert(Variavel3);
Not exactly the answer to your question, but that doubt, can add you interesting information. (:
– Felipe Avelar
Related: http://answall.com/a/58621/6077
– ptkato