I am populating a select menu with getJSON. I am wondering if there\'s a way that I can use jQuery\'s .each function to bring in these values?
Surely there must be
This should work:
$.getJSON('selectMenus.php', function(data){ $.each(data, function(index,item) { $("select.month").append("" + item.month + ""); }); });