請幫我創建一個函數,其中包括多個變量 - 至少兩個......的onclick多變量
我已經將其用PHP和MySQL創建表......所有的ID都dinamically創建爲什麼我需要以其他方式抓住他們而不是指定他們。
爲了更好地理解表的結構一小塊代碼 - 我已經包含在jsFIDDLE
function delete_id(id) {
alert (id);
var test = $(this).closest('tr').attr('id');
alert(test);
};
檢查我的答案。 –