After I’ve done my Parse query of a person’s pets, I need all the pet names in a dropdown field. Leaving out lots of code, but essentially
for (var i = 0; i < results.length ; i++) {
$('\<option\>').val(results[i].attributes.name).
text(results[i].attributes.name)
.appendTo('#pet-names');
}
where pet names is my selection form field. Seems simple, enough, I know, but…sigh…