I have a div:
<div id="test">Text to be removed</div>
How can I add this complete form into the div, using JUST code (starting from nothing, meaning the form element does not exist anywhere in the page):
<form name="input" action="html_form_action.asp" method="get">
Edit: <input type="text" name="tex" value="Some text here to edit"/>
<input type="submit" value="Submit" />
</form>
Well how about…
or…
Or with the native API…
Or with the native API, and a helper function…
Then…