- asp.net mvc model object is being fetched by ajax call - $.ajax(....
- form has fields with IDs exactly to matching properties on returned json object (created by
Html.TextBox("NAME", Model.Order.NAME)
)
How to automatically populate fields(inputs) with corresponding json object properties ?
Manually would be like $("#NAME).val(json.NAME)
so how to make this dynamic?
Is there some kind of reflections (like System.Reflection in c#) for javascript/jquery ?