Select all in a textbox

  • Unknown's avatar

    I have created a textbox and would like to be able to select all the text in the box ONLY and copy it but I cant figure out the code to do that and my hosting is with wordpress so I cant use plugins.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Would you mind explaining where you created this textbox and what you are trying to do with it?

    If you are trying to select all the writing in a text box, then copy the information inside, you can use the Select All keyboard shortcut (CTRL+A in Windows, COMMAND+A in OSx) then copy using the Copy keyboard shortcut (CTRL+C in Windows, COMMAND+C in OSx). Paste wherever you need that text next.

  • Unknown's avatar

    the main page has pic, if you click the pic it takes you to a textbox . The textbox contains code to be copied for a canasta league tour page. I want the person to be able to select all in the textbox and not the entire page.
    the page is islandgetawaycanasta.wordpress.com

  • Unknown's avatar

    Ah, I see what you’re saying now.

    The reason that this is not working on your site is because you’re using a styled series of <div> tags rather than a <textarea> – which makes sense because form elements are stripped from the page. See: http://en.support.wordpress.com/code/

    Instead of worrying about textareas and styled divs, you could try using the Source Code method! http://en.support.wordpress.com/code/posting-source-code/

    You would take the content you’ve been trying to put into a textarea and write it something like this:

    [code language="html"]
    <embedded HTML code here>
    [/code]

    It may not be exactly what you were going for but should at least offer you a stylistic way to offer a cleaner copy & paste situation.

  • Unknown's avatar

    thank you so much for your help

  • The topic ‘Select all in a textbox’ is closed to new replies.