/    Sign up×
Community /Pin to ProfileBookmark

The problem with no solution

Greetings and salutation fellow members from webdeveloper.com !
I come to you today with a problem that I am trying to find a solution. No luck so far ?

I’m not sure if this is the right place for this, but any kind of solution is more than welcomed ?

But enough talking. For days I am trying to figure out a way to do a script. I have a <textarea> and a button. I want to find a way that when i click the button the content in the <textarea> to change.

Any feedback is more than welcomed πŸ™‚

to post a comment
HTML

9 Comments(s) ↴

Copy linkTweet thisAlerts:
@FangAug 26.2005 β€”Β Change it from what to what?
Copy linkTweet thisAlerts:
@the_treeAug 26.2005 β€”Β [code=html]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Sample Page</title>
<script type="text/javascript">
<!--
function changeto(content){
document.getElementById('textbox').childNodes[0].nodeValue = content;
}
//-->
</script>
</head>
<body>
<form>
<textarea id="textbox">&nbsp;</textarea>
<button onclick="changeto('monkey');">Monkey</button>
</form>
</body>
</html>[/code]
Copy linkTweet thisAlerts:
@DeltaOneauthorAug 29.2005 β€”Β Fang - Change it from what to what? [/QUOTE]

Yeah, I know, I was not explicit enough... ?


*[B][COLOR=Red]DeltaOne[/COLOR][/B] bows in front of [U]The Tree[/U]

Triple Thanks! ?
Copy linkTweet thisAlerts:
@deep_dhyaniAug 29.2005 β€”Β here is example:


<html>

<body>

<form>

<textarea name="ta" cols=10 rows=5>&nbsp;</textarea><br><br>

<button onclick="document.forms[0].ta.value='Test'">Change</button>

</form>

</body>

</html>
Copy linkTweet thisAlerts:
@The_Little_GuyAug 29.2005 β€”Β What do you want to show up in the text area everytime you click the button?
Copy linkTweet thisAlerts:
@the_treeAug 29.2005 β€”Β *[B][COLOR=Red]DeltaOne[/COLOR][/B] bows in front of [U]The Tree[/U]

Triple Thanks! ?[/QUOTE]
Hehe. Thank[i]you[/i].
Copy linkTweet thisAlerts:
@DeltaOneauthorAug 30.2005 β€”Β deep.dhyani[/QUOTE] That works too! Awesome [COLOR=DarkRed][SIZE=4][FONT=Courier New]Thanks[/FONT][/SIZE][/COLOR]! ?
What do you want to show up in the text area everytime you click the button?[/QUOTE]
I want to put there some stuff like... my adress ... or something like it (thats what i have in mind anyway). I have only 1 problem... How do I go to the next line (like <br>) in a <textarea> thing? ? Is it even possible? ?
Copy linkTweet thisAlerts:
@bathurst_guyAug 30.2005 β€”Β rn im guessing
Copy linkTweet thisAlerts:
@DeltaOneauthorAug 30.2005 β€”Β Many Many Many Many Many Thanks!!!!
Γ—

Success!

Help @DeltaOne 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.19,
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,
)...