create textbox dynamically - Javascript Views : 581
Tagged in : Javascript
Send mail vote down 0 vote down 0
create textbox dynamically
If you want to create textboxes dynamically just use the below code.
<script type="text/javascript">
function test()
{
var formtag = document.createElement("form");
var txttag=document.createElement("input");
txttag.type="text";
txttag.id="txttag1";
txttag.style.height="20px";
txttag.style.width="150px";
formtag.appendChild(txttag);
document.body.appendChild(formtag);
}
</script>
<input type="button" value="create textbox" onclick="test()">
By - Nirmala, On - 2010-05-05




    Login to add Comments .