It seems when I am trying to retrieve information from my parse data I am having no issue displaying the information from the user table onto my document but when I try to query another object & insert it into an id element with jQuery using either text();, html();, or val(); I either get nothing or the text becomes into [object Object]. below is the code I have written down. I also tried a JavaScript method & same output I get [object Object].
var currentUser = Parse.User.current();
if (currentUser) {
var UserInfo = Parse.Object.extend("UserInfo");
var query = new Parse.Query(UserInfo);
query.equalTo("user", currentUser);
query.find({
success: function(UserInfo) {
document.getElementById('fieldone').innerHTML = query.get("fieldone");
$('#fieldtwo').text(query.get("fieldtwo"));
$('#startDate').val(query.get("startdate"));
$('#endDate').text(query.get("enddate"));
},
error: function(object, error) {
}
});
}