My code
$(document).ready(function(){
$('.formulario').submit(function(e){ e.preventDefault();
var inputId = $('.inputId').val();
$.ajax({ method: "GET"
,url:"localhost/api/32327ed48666154acb54810521d6f01e0d5de59e/movies/…"
, dataType: 'json',
}).done(function(json) {
console.log(json);
$('body').append(
'ID do Genero: ' + json.genre.id);
});
});
});
I'm trying to get the values from the genre field, but I'm not getting anyone could help me?