Software, your way.
burger menu icon
WillMaster

WillMaster > LibraryWeb Page and Site Features

FREE! Coding tips, tricks, and treasures.

Possibilities weekly ezine

Get the weekly email website developers read:

 

Your email address

name@example.com
YES! Send Possibilities every week!

Print textarea Box Into Web Page

The source code accompanying this article is available only to WebSite's Secret members.

A recent comment from a reader stimulated this article. The comment was, "How do I get the text out of the textarea box to use elsewhere?"

I'll show you how to transfer the content of a textarea box into a div on the same web page. The transfer can occur either:

• Immediately after any change is made to the text in the textarea box.

– or –

• When a button is clicked.

Both methods are explained. First, I'll demonstrate.

Copy textarea box into div - Demonstration 1

Between this paragraph and the textarea box below is a div. It will be updated with content of the textarea box whenever the content is changed, growing and shrinking as needed. (By my choice, the demo div is invisible so long as the textarea box has no content.)

The div containing the content typed into the textarea box can be anywhere on the page. It can be bordered or not, and either a specific size or allowed to grow and shrink like the demonstration.

Copy textarea box into div - Demonstration 2

Between this paragraph and the textarea box below is a div similar to the one in the first demonstration. It will be updated with content of the textarea box whenever the button is clicked.


The div containing the content typed into the textarea box can be anywhere on the page, with any style a div can have.

The source code is available only for WebSite's Secret members.

Will Bontrager

Was this article helpful to you?
(anonymous form)

Support This Website

Some of our support is from people like you who see the value of all that's offered for FREE at this website.

"Yes, let me contribute."

Amount (USD):

Tap to Choose
Contribution
Method

All information in WillMaster Library articles is presented AS-IS.

We only suggest and recommend what we believe is of value. As remuneration for the time and research involved to provide quality links, we generally use affiliate links when we can. Whenever we link to something not our own, you should assume they are affiliate links or that we benefit in some way.

How Can We Help You? balloons
How Can We Help You?
bullet Custom Programming
bullet Ready-Made Software
bullet Technical Support
bullet Possibilities Newsletter
bullet Website "How-To" Info
bullet Useful Information List

© 1998-2001 William and Mari Bontrager
© 2001-2011 Bontrager Connection, LLC
© 2011-2024 Will Bontrager Software LLC