1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'HTML & JavaScript' started by input, Dec 22, 2012.

  1. input

    input Newbie

    Joined:
    Sep 15, 2012
    Messages:
    19
    Likes Received:
    1
    This seems like such a simple question, but I've searched everywhere and can't find an answer.
     
  2. johndoejohndoe

    johndoejohndoe Junior Member

    Joined:
    Feb 13, 2011
    Messages:
    177
    Likes Received:
    33
    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.
     
  3. input

    input Newbie

    Joined:
    Sep 15, 2012
    Messages:
    19
    Likes Received:
    1
    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.
     
  4. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,468
    Likes Received:
    10,154
  5. alias_unknown

    alias_unknown Newbie

    Joined:
    Dec 30, 2012
    Messages:
    41
    Likes Received:
    4
    This post doesn't make sense but maybe you mean how to put text into a textbox dynamically... you can do that with JavaScript.
     
  6. input

    input Newbie

    Joined:
    Sep 15, 2012
    Messages:
    19
    Likes Received:
    1
    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?
     
  7. Zapdos

    Zapdos Power Member

    Joined:
    Oct 22, 2011
    Messages:
    597
    Likes Received:
    708
    Location:
    Eastern North Carolina
    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>