Generate TextArea objects at runtime

Hi there,

Quick question. I am doing a project where I generate jqm objects at runtime (this is because I do not know if advance how many objects should I need).

I already generated Labels, Images, Select Controls, and Textboxes; however I do not know which code or name should be posted in order to create a text area. Here is my example of an image control:

Function CreateImage(idName,width, height, leftSide, top,srcImage,hidestatus)
Dim obj

obj = document.createElement(“img”) ->> my question is which value should be instead of img to get a TextArea

obj.setAttribute(“id”, idName)
obj.style.position = "absolute"
obj.style.width = width & "%"
obj.style.height = height & "%"
obj.style.left = leftSide & "%"
obj.style.top = top & "%"
obj.hidden=hidestatus
obj.src=srcImage
CtPEQuestions.appendChild(obj)

End Function

Thanks in advance,
Adrian.

This might help…

obj = document.createElement(“textarea”)

Kind regards,
Doug

Thanks a lot Doug. That worked nicely.

Best Regards,
Adrian