Get the selected part of a textare?

Discussion in 'JavaScript' started by mahmood, Dec 24, 2005.

  1. #1
    Is there a way to get the selected part of a text in a textarea?

    What I want to do is to create something like this text box, user can select a part of the text and make it numbered or bolleted.


    Thanks

    .
     
    mahmood, Dec 24, 2005 IP
  2. n0other

    n0other Peon

    Messages:
    146
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hello, looks at this piece of code: www DOT quirksmode DOT org/js/selected.html
     
    n0other, Jan 1, 2006 IP