Unable to read value from hidden field post JQuery 3.3.1 upgrade

Unable to read value from hidden field post JQuery 3.3.1 upgrade

Dear team, We have used Knockout library along with JQuery in one of the page.

We are binding hidden field with a value from model in cshtml page:

<input id="OrderId" type="hidden" value="@Json.Encode(Model.OrderList.Select(it => new { it.ItemDescription, it.ItemId}))" />

and then reading the value in js and assigning to observable like:

self.OrderList(JSON.parse($("#OrderId").val())); 


Post jquery upgrade, $("#OrderId").val() does not returns anything 'undefined'   


Can you please help me what needs to be changed in code?