Click to See Complete Forum and Search --> : Selecting text


ollmorris
02-24-2003, 08:47 AM
Hi.

I was just wondering if someone could help me with something.

I want a user to be able to select some text in a textfield and when they press a button it adds QUOTE marks (" ") at the start and end of their selection.

If no text is selected and and the user clicks I would like nothing to happen (i.e no JAVASCRIPT ERRORS)

Thanks for your time

Phil Karras
02-24-2003, 03:07 PM
I assume you mean it adds quote marks around the text in the text box that you have hi-lighted, right?

Sorry but I don't believe there is a way to do that with JavaScript.:mad: