lundi 15 novembre 2021

How to get multiple value parameters in jquery ajax success?

How can I get multiple values in jquery ajax success?

My desired goal is:

$.ajax({
....
success: function(data,myvalue2) {
  dataTable.ajax.reload(); //data in here is an array that fill datatable (JSON)
  $("#input").val(myvalue2); // myvalue2 is an id for title of page
}
....
});



Aucun commentaire:

Enregistrer un commentaire