Hello Experts,
i want to generate dynamic id for textbox and button.
$(document).ready(function () {
function addRow() {
var html = '' + ';
' ' +
' ' +
' ' +
' ' +
' ' +
' ' +
'
$(html).appendTo($("#Table1"));
};
/
$("#Table1").on("click", "#btnadd", addRow);
function deleteRow() {
var par = $(this).parent().parent();
par.remove();
};
};
});
when i click on "add product" button its add new row for product.But not getting different id for Textbox of new row.
Please help me.
Thank You
Midhun TpRank #388 · 6.5K reputationPosted Jul 28, 2016, 11:44 PM EDT
PrakashRank #6,639 · 260 reputationPosted Jul 28, 2016, 11:51 PM EDT
Suthish NairRank #92 · 22.8K reputationPosted Jul 28, 2016, 11:29 PM EDT
PrakashRank #6,639 · 260 reputationPosted Jul 28, 2016, 11:32 PM EDT
Midhun TpRank #388 · 6.5K reputationPosted Jul 28, 2016, 11:39 PM EDT
PrakashRank #6,639 · 260 reputationPosted Jul 28, 2016, 11:41 PM EDT
PrakashRank #6,639 · 260 reputationPosted Jul 29, 2016, 12:10 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts