Menu
how can i delete a dynamically generated textarea by pressing on a button?.the textarea is generated by the following javascript.
<html>
<head>
<script language=”javascript”>
function genBox(n)
{
var thebox = document.createElement(‘textarea’);
thebox.setAttribute(‘rows’,’10’);
thebox.setAttribute(‘cols’,’30’);
document.getElementById(n).appendChild(thebox);
}
</script>
</head>
<body>
<input name=”Input” type=button onclick=”genBox(‘boxhold1’)” value=”insert textarea” />
<div id=”boxhold1″></div>
</body>
</html>