Unstoppable Domains — Get your daily AI drops report

Textbox to div

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
Watch

toolman

Account Closed
Impact
0
Hi
I am looking for a script that will allow me to type in a text box then instantly disply it somewhere else on a page. Any ideas what its called or where to get one?

thanks
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
you want something like this:

HTML:
<div id="someDIV" name="someDIV" border="1"></div>
<input type="text" name="someTEXT" onKeyUp="document.all.someDIV.innerHTML=this.value;" />

Put the DIV wherever you want it on the page. When a user types in the "input" textbox, the DIV value changes automatically. If you want a multi-line textbox, just remove "input type="text"" and change it to "textarea" you then need to close it (</textarea>)
 
0
•••
or, if u want to learn a little server side scripting, you cud always just use php to echo the variable which is sent over thru the form. thats guarenteed to work if its done rite ;)
 
0
•••
This can be done with AJAX but it would call on your server every second (which could be a resource hog).
 
0
•••
CatchedCatched

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com
Catchy
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back