I have below code , here i need to get Value1 from .done and assign it outSideValue. How i can get it ?
function callGetTxt(){
var outSideValue;
$.ajax({
url: 'data',
cache: false
})
.done(function( text ) {
arr1 = text.split('\n');
var Value1 = arr1[0];
});
}