I know how to access Javascript objects in general, but how to do this if that object is the returned value of a Javascript function that is triggered by default for a certain event?
Simplified example:
$(document).on('change', 'select', function() {
var obj = {
value1: 'val1',
value2: 'val2'
};
return obj;
});
How would I access the returned object?