emopoops Posted November 23, 2009 Share Posted November 23, 2009 ive heard you can use the word : this to select the certain one. i have a page with code snippets theresĀ more than one so i was wondering how i could go about selecting them seperately(highlighting) so that i can copy it. (like a button to select (highlight) the certain(specific) text. Link to comment https://forums.phpfreaks.com/topic/182582-how-can-i-select-all-highlight-text-so-it-can-be-copied-of-text-in-span-tags/ Share on other sites More sharing options...
Viola Posted November 25, 2009 Share Posted November 25, 2009 If each span area has a name, you can use document.getElementsByName() to get the spans with the code, then iterate each one and select like you would normally. Link to comment https://forums.phpfreaks.com/topic/182582-how-can-i-select-all-highlight-text-so-it-can-be-copied-of-text-in-span-tags/#findComment-965234 Share on other sites More sharing options...
emopoops Posted December 5, 2009 Author Share Posted December 5, 2009 ok thanks Link to comment https://forums.phpfreaks.com/topic/182582-how-can-i-select-all-highlight-text-so-it-can-be-copied-of-text-in-span-tags/#findComment-972095 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.