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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
emopoops Posted December 5, 2009 Author Share Posted December 5, 2009 ok thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.