I have saw access function from inside to outside, but I can not find an exact answer on how to access inner functions's variable from outer function with JQUERY, not javaScript.
I have code below
$(document).ready(function(){
var outv=1;
function innerfunc(){
var innerfuncv=2;
var outv=3;
alert(outv);
};
alert(outv);
innerfunc();
alert(outv);
alert(innerfunc.outv);
});//$(document).ready(function() END
Please help. Thanks! Let me know if there is more info needed.