You are here: DEVPPL Forum Programming JavaScript Forum
NOTIFICATIONS
54.094
MEMBERS
15.692
TOPICS
62.270
POSTS
  562
FLASH GAMES
7.740
TUTORIALS
 

Login

E-mail:
Password:

OnClick to select all text in a cell

0

Loading

OnClick to select all text in a cell

Postby Moonlight » Thu Jun 16, 2011 8:34 am

Dear ALL

How to select all text in a cell by clicking in it ?

I would like to select all text in a cell for fast copying.

Copying 1 cell at a time.

Thanks
Moonlight
 
Reputation: 0
Posts: 1
Joined: Thu Jun 16, 2011 8:31 am
Highscores: 0
Arcade winning challenges: 0

OnClick to select all text in a cell - Sponsored results

Sponsored results

Login to get rid of ads

 

0

Loading

Re: OnClick to select all text in a cell

Postby Rajmv » Thu Jul 14, 2011 6:57 pm

I did some googling for you but could not find a way to select any text other than in <input> or <textarea> tags. So if you put your cell text inside a <input> or <textarea>, then you can use http://webcloud.se/log/Selecting-text-with-JavaScript/ to select it for the end-user.
Rajmv
 
Reputation: 0
Posts: 103
Joined: Thu Jul 14, 2011 8:22 am
Highscores: 0
Arcade winning challenges: 0
^ Back to Top