I need to add elements dynamically to a Form in JavaScript. I thought the addChild
method would be useful and I tried the following:
var objForm = document.getElementById("idForm");
objForm.addChild(element);
However, it produces an error saying the object doesn't have the method.
How can I add elements to a form using Javascript?
add a comment