Jump to content

Selecting a line of text


bg380

Recommended Posts

I'm trying to display a bunch of lines of text one line at a time, like a code printout, and allow the user to select one of the lines by clicking on it. Obviously, the displaying part isn't so hard. But i'm not sure how to select and highlight a whole line with a single click, or how to figure out which line has been selected afterwards. How does one normally do something like this?

 

 

Link to comment
https://forums.phpfreaks.com/topic/79405-selecting-a-line-of-text/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.