1
I have a PHP script that is returning as follows
{
  "Resultado": [
    {
      "NOMECURSO": "Administração Diurno Sede Ribeirão Preto"
    },
    {
      "NOMECURSO": "Administração Noturno Sede Ribeirão Preto"
    },
    {
      "NOMECURSO": "Agronomia Diurno Campus Ribeirão Preto"
    },
    {
      "NOMECURSO": "Arquitetura e Urbanismo Diurno Campus Ribeirão Preto"
    }
  ]
}
Now in my JS file I am recovering the date value and trying to put the result within a select in my html. more does not work
$.ajax({
    type: "POST",
    url: 'xxxx.php',
    data: {cpf: $('.cpf').val()},
    datatype: "json",
    returnType:"json",
    beforeSend: function() { $('.passo4').hide();$('.loading').show(); },
    complete: function() {  $('.loading').hide();$('.passo4').show();},
    success: function(data){
       var resultado = data;
var $select = $('#data_prova');
 $select.find('option').remove();
$.each(resultado,function(key, value)
{
    $select.append('<option value=' + key + '>' + value + '</option>');
});     
     }
  });
More does not recover! from that error
I need to put these results within a select.. Can anyone help me!

Thank you very much , was perfect!!!! on the returnType I saw on another topic and I put to test... thanks!!!
– user93341