Posts by user130972 • 36 points
1 post
-
2
votes3
answers73
viewsA: Requisicao ajax - query parameter
With the JSON notation you cannot assign the key name dynamically, what you can do is function ajsjax(string,valor) { let data = {}; data[string] = valor; $.ajax({ type: "POST", dataType: "html",…