-1
(function(){$('。KisiSilici')。click(function(){ does not working .click,.on,.live,is my try but not work。Thanks for your help 。ajax選擇性不工作
也許是因爲我填寫表格與阿賈克斯
$(document).ready(function Kisilertabs() {
$(function() {
$("#tabs").tabs();
});
var id = @Model.ID.ToString()
$.ajax({
url: '@Url.Action("Kisiler", "Cihazlar")',
type: "get",
contentType: "application/json; charset=utf-8",
data: { data: id },
dataType: "json",
success: function (data) {
var row = "<tr><th width='70'>S. No</th><th width='220'> Adı </th><th width='220'>Soyadı</th><th>Sicil No</th><hr/></tr>";
$.each(data, function (index, item) {
row += "<tr id='" + item.ID + "'><td>" + item.ID + "</td ><td>" + item.Adi + "</td><td>" + item.Soyadi + "</td><td>" + item.Sicil + "</td><td><a href='/Kullanicilar/Details/" + item.ID + "'><img width='15' src='../../Content/images/Detay.png'></a></td><td><input id='Kisisec' value='" + item.ID + "' class='KisiSilici' type='image' width='20' src='../../content/images/sil.png' /></td></tr><hr />";
});
$("#Kisiler").html(row);
},
error: function (result) {
alert("Error");
}
})
});
$(function problem() {
$('.KisiSilici').click(function() {
var ip = "";
$.ajax({
url: '@Url.Action("KisilerSil", "tabs")',
type: "POST",
data: { data: ip },
success: function (data) {
var row = "<p>" + data + "</p>";
$("#CihazKontrol").prepend(row);
},
error: function (result) {
alert("Error");
},
})
});
});
** $(功能問題()**是什麼意思? – 2014-11-01 13:24:30
你能否明白你在問什麼? – 2014-11-01 13:25:36