I used HTML snippet on javascript to pass an object to a function but it didn\'t work.
var obj = { LocationID: location.LocationID, OrderID: c.ID }; str += `&