/    Sign up×
Community /Pin to ProfileBookmark

Help ???? Duplacate Text area.

Please Help. ok what I have is a page on my web site with one large text area that customers can fill in. but i need that when they click a button and the text area not the text will duplacate on the page so they can fill in new info.
Please Please HELP as i need this up and running by tomrrow.

Regards
Aiden.

to post a comment
Full-stack Developer

1 Comments(s)

Copy linkTweet thisAlerts:
@FangApr 24.2007 — <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html lang="en">

<head>

<title>DOM</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<script type="text/javascript">

function newTextArea() {

var aTA=document.getElementsByTagName('textarea');

var textarea=document.createElement('textarea');

textarea.setAttribute('rows', 10);

textarea.setAttribute('cols', 10);

aTA[aTA.length-1].parentNode.appendChild(textarea);

}

</script>

</head>

<body>

<form action="#" name="form1">

<fieldset><legend>form</legend>

<textarea rows="10" cols="10"></textarea>

<button type="button" onclick="newTextArea();">newTextArea</button>

</fieldset>

</form>

</body>

</html>
×

Success!

Help @aiden857181 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...