How to get the data from text boxes of checked rows on Alert box in jQuery?Html

Программисты Html
Anonymous
How to get the data from text boxes of checked rows on Alert box in jQuery?

Сообщение Anonymous »

Я хочу просматривать все строки, отмеченные в окне предупреждения, каждый раз, когда я нажимаю кнопку, но я делаю что-то не так
Javascript для добавления строк

Код: Выделить всё

 $("#add").click(function () {
$("#myTable").last().append("

");
});
Я тоже это сделал, но теперь окно оповещения пусто

Код: Выделить всё

$("#view").click(function () {
$('input[type="checkbox"]:checked');
var n=$(this).closest('tr').text();
alert(n);
});
Мой HTML

Код: Выделить всё











Add  Remove   Remove All View




First name
Last name
Profession










Подробнее здесь: https://stackoverflow.com/questions/410 ... -in-jquery

Вернуться в «Html»