Which of the following is the best method for adding options to a select from a JSON object using jQuery?
Answer
Correct Answer: $.each(selectValues, function(key, value) { $('#mySelect') .append($("<option></option>") .attr("value",key) .text(value)); });
Explanation:
Note: This Question is unanswered, help us to find answer for this one