lundi 11 mai 2020

How to concat url in Ajax with format Laravel routes?

I have Ajax error code like this :

$.ajax({
    type: "GET",
    dataType: "json",
    url: "",
    success: function (data) {
          console.log(data.options);
    }
});

If url I rewrite like: (it works)

url: "",

"+val.id+" is wrong?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire