Dear All,
I have a link here http://183.78.169.54/v3/addCVC.php. First if you select the name T1 via ajax the second drop down list is populated. Then pick anyvalue from the second drop down list and your will get a table populated below it. Then finally when you press submit button I call the validation function. In there I got this little codes.The alert keep showing me null even though the table is generated with its relevant values too. What is the problem ya?

var table = document.getElementById("listOfCorrection"); 
//var checkbox = table.getElementsByTagName("input");
alert("tableContent:"+table);

Recommended Answers

The table is being returned, it's not null. It's returning [object], which is the table. Try:

alert('table contents:' table.innerHTML);

But even that I don't think will yield the results you want.

Jump to Post

All 2 Replies

Member Avatar

The table is being returned, it's not null. It's returning [object], which is the table. Try:

alert('table contents:' table.innerHTML);

But even that I don't think will yield the results you want.

Dear Friend,
I managed to solve it. Thank you. Yes the table content is in now. Thank you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.