Menu

#82 Select All (spent three days on this)

open
nobody
Interface (41)
5
2009-03-26
2009-03-26
Ami Ima
No

How do I make a "select all" code?

I want to do this as a first step to create a " real-time search in code" function.

I have managed to place the curse in the editor with the command "profilecode.contentWindow.focus();"
where "profilecode" is the id of the textarea.

But "profilecode.contentWindow.select();" dose not work, to select all text. Surly because the textarea gets disabled.

How do I solve this? Thanks in advance.

Discussion


Log in to post a comment.