How do you send text (to a certain place) with a textbox?

input

Newbie
Joined
Sep 15, 2012
Messages
19
Reaction score
1
This seems like such a simple question, but I've searched everywhere and can't find an answer.
 
What "certain place" are you trying to send this text to? You'll have to be more specific. You're likely not finding an answer to the question because it doesn't truly make sense. Text boxes on websites submit data to be processed and/or stored in a database.
 
When I said "certain place", I was using it as an example. Sorry. Bad wording. What I meant was, basically, I want it to output. And I'm assuming there's a code to make it output to where ever you choose, on a website.
 
This post doesn't make sense but maybe you mean how to put text into a textbox dynamically... you can do that with JavaScript.
 
I know. I worded it wrong. What I meant was: How do you put text in a textbox and make it appear outside of the textbox?
 
You could do that using jquery.

Example (may or may not work, didnt test)
Code:
<div class="message"></div>
<textarea></textarea>
<script type="text/javascript">
$(document).ready(function() {
    $('textarea').keyup(function() {
        $('.message').text($(this).value());
    });
});
</script>
 
Back
Top