Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Javascrip-Add new textbox at runtime in your DIV tag
WhatsApp
Ghanashyam Nayak
4y
10.1
k
0
0
25
Blog
<html>
<head>
<title>Dynamic Form</title>
<script type=
"text/javascript"
>
function
NewTextbox()
{
var
t = 1;
newTextbox.innerHTML = newTextbox.innerHTML +
"<input type=text name='txt'+ t />"
}
</script>
</head>
<body bgcolor=#00ff00 alink=blue vlink=blue>
<form name=
"form"
action=
"post"
method=
""
>
<input type=
"button"
value=
"Add New TextBox"
onClick=
"NewTextbox()"
>
<div id=
"newTextbox"
></div>
</form>
</body>
</html>
Javascrip-Add new textbox at runtime in your DIV tag
Up Next
Hide and Show DIV using JavaScript
Ebook Download
View all
JavaScript Interview Q & A
Read by 832 people
Download Now!
Learn
View all
Membership not found