It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

OnClick to select all text in a cell

OnClick to select all text in a cell

Postby Moonlight1 on Thu Jun 16, 2011 7: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
Moonlight1
 
Posts: 1
Joined: Thu Jun 16, 2011 7:31 am

Re: OnClick to select all text in a cell

Postby rajmv on Thu Jul 14, 2011 5: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
100+ Club
 
Posts: 103
Joined: Thu Jul 14, 2011 7:22 am


Who is online

Users browsing this forum: No registered users and 3 guests