PDA

View Full Version : Select Text



shield
01-18-2006, 09:26 AM
I have the following in a page:


<div id="text">
This is the text contents
</div>

What I want is a link which when it is clicked the contents of that div are selected/highlighted...

How can this be done?

Thanks

martian2k4
01-18-2006, 11:35 AM
Why not use a text box?

shield
01-18-2006, 12:05 PM
Because I dont want to use a text box ;)

That would be way too easy ;)

I want it to selectd the contents of a div so I can use it on actual page content where theye could be quite a lot of - I dont want to have a textbox filling up the entire page just so it can be selected...

Chroder
01-19-2006, 12:06 AM
I don't think it is possible to maniplulate selections outside of form elements.

shield
01-19-2006, 03:51 AM
:( Oh...

Ok...

Thanks anyway