title: how to make a global variable in jquery loop
body: <p>I want to make  all the keys as variables and want to use outside $.each,instead of using data.company_id, want it to be used as company_id         </p>
  
  <pre><code>success     : function(data){
               console.log(data);
  
               $.each(data,function(key,val){
  key = val;
                   })
  console.log(company_id);
  </code></pre>