-1
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 field values Genre, but I’m not getting anyone could help me?
Maycon, instead of the image post the code so we can help you.
– Caique Romero
Welcome Maycon Benito, when you ask about a problem in your code, you’ll get better answers if you give people code that they can use to reproduce the problem. Read this post https://pt.meta.stackoverflow.com/questions/5483/manual-de-como-n%C3%83o-fazer-perguntas/5485#5485
– user60252