I need to pass a GUID as a parameter from a View to a JavaScript function. However, I encountered an error message in Firefox stating "identifier starts immediately after numeric literal."
Below is the code snippet from the View:
onchange="updateOrder(<%= Model.Category[j].OrderItems[i].OrderID %>, <%= Model.Category[j].OrderItems[i].ID %>, this.value, <%= Model.CategoryItems[j].OrderItems[i].Order.JournalID %>);" />
<%= Model.CategoryItems[j].OrderItems[i].Order.JournalID %> is formatted as a GUID.
And here is the corresponding JavaScript code:
function updateOrder(orderID, itemID, quantity, journalId) {
...
}
Your assistance with this issue would be greatly appreciated.