Jump to content

copying input text to another element as it is being typed in real time


boo_lolly

Recommended Posts

I'm trying to figure out the easiest and best way to have a little bit of javascript functionality. So let's say for example I have a page like this:

<div id="copy"></div>

<input type="text" name="userinput" />

 

I would like the div to display the text of whatever the end user is typing in the input field while end user is typing it in real time seamlessly. I'm sure there is no need for a javascript toolkit or framework for this one, but I'm already using jQuery with this project so if you decide to submit a working example using jQuery by all means do. Any help, resources, or advice is welcomed. Thanks!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.