- 我有不明量的可點擊的 按鈕。 (生成)
- 每個按鈕都連接到 多個值,應通過Ajax調用發送 。
我發現這開始:使用Ajax和jQuery動態地發送多個值
$.ajax({
type: "POST",
url: "some.php",
data: parameters,
success: function(msg){
alert("nothing");
}
});
data
包含參數據我所知。我的參數根據點擊的按鈕而不同。
我的猜測是我可以在某處使用this
?但是如果我需要發送3個值呢?
<input type="button" id="unique-1"> <!-- With values 'test', 3 and 5 -->
<input type="button" id="unique-2"> <!-- With values 'doh2', 8 and 6 -->
我使用PHP,如果你需要這些信息。
謝謝!
如何值綁定到節點? – jAndy 2011-01-24 20:41:33
不,不是。我應該把它們放在rel-tag還是可以找到它們的東西? – 2011-01-24 20:46:08