title: jQuery Passing Variable from From One Function to Another Function
body: <p>I need to create a variable and assign a value to this variable to use later on.  To save complexity and keep it simple, I've removed details that are also part of what else goes into var item2.  The variable in this example would be <strong>mySeries</strong></p>
  
  <pre><code>var mySeries;
  
  $.getJSON("/_scripts/proxy.php", jsonObj, function(item)
  {
  //Stuff happens here
  
  //NEED TO ASSIGN VALUE TO mySeries HERE:
  mySeries = item[0].series_id;
  
  //Stuff happens here
  });
  
  //NEED TO USER mySeries VALUE HERE BUT IT IS NOT DEFINED
  var item2 = mySeries;
  </code></pre>