I have an AJAX request that does nothing and I don't know why. It doesn't give me any error.my code:
$("#idButton").click(function(){
$.ajax({
type: "GET",
url: "https://api.fixer.io/latest?base=EUR",
data: {},
success: function(data) {
$("#idUsd").val(parseInt(data['rates']['USD']) *
parseInt($("#idEur").val())); //I think the error is here
},
error: function(x, e) { console.log(e); }
});
});
Can anyone help me?
EDIT: