I am new to JS and DHTML. I want to add elements like lable, textbox, button etc on differnt events of the page in a div present in html page.
So, the contents of present div element changes accordingly. At present, I am adding each element in a form & the dynamic form in the div. I am unable to add the form directly, so i have a label in html div & add the form using insertBefore ('dynamicForm', lbl).
Expand|Select|Wrap|Line Numbers
- <div id="directDIV" class="directDIV" style="width: 273px; position: absolute; height: 550px; background-color:silver; left: 13px; top: 188px;">
- <label id="lbl"></label>
- </div>
How do i face and solve this situation. By removing and adding or appending elements in the html div on different events.
Any help is highly appreciated. Please help me to solve this problem.
Thanks
Trupti