Highlight line of a textarea on mouse click

D

Dan Williams

Does anyone know if its possible to get the line number of a textarea form
element when a user clicks on a specific line, and hence highlight it?

If so, can you point me in the right direction of the code to do so.

Many thanks

Dan Williams.
 
D

Dan Williams

Its OK, i've changed the textarea object to a select.

However, is there anyway to show a horizontal scrollbar with a select
option?

Thanks again

Dan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top