- I have an unknown number of button clicks. (Generated)
- Each button is connected to several values that must be sent via an Ajax call.
I found this for a start:
$.ajax({
type: "POST",
url: "some.php",
data: parameters,
success: function(msg){
alert("nothing");
}
});
datacontains parameters as far as I know. My options vary depending on which button is pressed.
I guess I could use thissomewhere? But what if I need to send 3 values?
<input type="button" id="unique-1">
<input type="button" id="unique-2">
I use PHP if you need this information.
Thank!
source
share