Validate Dynamically Generated Form Fields
Hello, I am having difficulty in validating some text boxes I dynamically generated using javascript.
I have done the below which is not working..... giving errors of undefined or is null
var i=rowNum;//value of the integer giving the form field a unique name
var thefield =(eval(document.getElementById('xxxx_'+i).value));
if (thefield =="")
{
alert("xxxxxxxxxxxxx");
}
This is not working. Any one has example of validating dynamically generated form fields?