#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    3
    Rep Power
    0

    javascript search a string


    Hi,

    I'd like to be able to select some part of a text in a textarea and put some tags around it then, i could do it with match, but my prolem there is, that i could get the same text at a different place. If i would select only a 'e' for example.

    I actually have no idea how to do this, is it even possible?

    Thanks,
    Phil
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Location
    USA
    Posts
    140
    Rep Power
    12
    You're wanting to perform some action on a specific word or letter, but only in certain cases?

    The only way to be able to do that is if there was something specific about the case that would limit the results.

    Can you be more specific?
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    3
    Rep Power
    0
    no, i'd like the use to be able to select any kind of text with his mouse and then click on a bold or whatever button.

    Similar to this forum, but i want the tags to close around the selected text...

    If it can be done, what i don't know...

IMN logo majestic logo threadwatch logo seochat tools logo