title: Why responseText getting as undefined while accessing directly on data in jQuery?
body: <p>As per my scenario i would like to have response data which is getting as responseText by posing below code in jQuery.</p>
  
  <pre><code>var account_id = jQuery('input[name=account_id]').val();
  console.log('Account Id is :: ' + account_id);
  
  var recordData = $.getJSON("http://localhost/vtigercrm/index.php?module=Inventory&amp;action=GetAccount&amp;record=" + account_id, function(data) {
      recordData = data;
  }); 
  console.log(recordData);
  </code></pre>
  
  <p>This is the console output which i have seen in browser console.</p>
  
  <p><a href="https://i.stack.imgur.com/PnHY7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PnHY7.png" alt="enter image description here"></a></p>
  
  <p>In the browser console i can see that there is a data at responseText. How can i get that responseText data.</p>
  
  <p>When i try to access by using </p>
  
  <blockquote>
    <p>recordData.responseText</p>
  </blockquote>
  
  <p>I got data as undefined.</p>
  
  <p>Can anyone help me to access responseText?</p>
  
  <p>Thanks &amp; Regards,</p>