I have a json object, and I want to get the specific value from each key like fetch_array in mysql. This is my json:
var jsonData = [{"Id":"1","Name":"Ariel"},
{"Id":"2","Name":"Rick"}];
Then I want to loop them in a <select> tag with $.each function
<select>
<option value='//this should be Id key' >//this should be Name key </option>
</select>
How do I pass id into the value attribute and pass the name in the <option> tag?