How to highlight (change background color) of selected text within a text area

Discussion in 'Javascript' started by omidalavi, Sep 23, 2005.

  1. omidalavi

    omidalavi Guest

    I want to create a functionality to be able to highlight - change
    background color - of selected text in a text area. I also want to
    capture all of the selected text for further processing.

    If this is not possible in a textarea, then I use another element (like
    a <DIV>)

    basically I need to ba able to highlight multiple sections of a text
    and then display all of the highlighted text somewhere else.
    omidalavi, Sep 23, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.