|
|
create textbox dynamically - Javascript
|
Views : 613
|
|
Tagged in : Javascript
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
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 |
|
|
|