I have a dynamic table in which I can add rows using an add button.. The problem here is I am not able to validate the rows that are added dynamically.
My Java Script code is as follows for adding the new rows:
var table = document.getElementById('tbodyId');
var row = table.insertRow(rownumber);
var cell1 = row.insertCell(0);
var element1 = document.createElement("input");
element1.type = "text";
element1.onchange = "validation();";
now my problem is the validation() function is not getting called when I am entering data into the textbox. Can anyone please help me and enlighten me as to what is wrong with this code?