PDA

View Full Version : Can you do an <a href="#something"> on a textarea


frank69m
10-06-2004, 07:03 PM
I have a very large text area box that I display and have people modify....

Is there any way I can have some sort of button or something outside the textarea and have them click on it and it automatically forwards them to the right part of the textarea box inside?

I have a textarea box that is like 1000 lines and searching for stuff can be a pain.

scoutt
10-07-2004, 11:47 AM
more than likely not, but if it was possible it would be with javascript.

senshi
10-07-2004, 08:49 PM
Yup, you would use the <option> textarea and add the data dynamically to the options array, this will allow you to select a line or multi-line selection.

Not entirely sure of the restrictions but I have found with large files or bodys of text, searching for stuff can be a pain. You can use something called regular expressions, looking at them, I cant see anything regular about them, more cryptic.

www.msdn.com for a selection of coding examples.

scoutt
10-07-2004, 10:28 PM
Originally posted by senshi
Yup, you would use the <option> textarea and add the data dynamically to the options array, this will allow you to select a line or multi-line selection.


textarea has an <option> tag? what option array? that sounds like a select tag, not a textarea.