As per my scenario i would like to have response data which is getting as responseText by posing below code in jQuery.
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&action=GetAccount&record=" + account_id, function(data) {
recordData = data;
});
console.log(recordData);
This is the console output which i have seen in browser console.
In the browser console i can see that there is a data at responseText. How can i get that responseText data.
When i try to access by using
recordData.responseText
I got data as undefined.
Can anyone help me to access responseText?
Thanks & Regards,