I am trying to bind a JSON array, which is the result of an Ajax call, to a <select/>
element.
A sample of the JSON structure is seen below:
[{"JD_No":1,"JD_Name":"Network Administrator"}, {"JD_No":2,"JD_Name":"System Administrator"}]
What I need to achieve is to extract the JD_No
value and JD_Name
value of each element and bind them to a html <select/>
I must also state that the JSON Key is dynamic, so referencing a specific Key Name will not be possible.
Any help please?