Please forgive me for the 'not very descriptive' title. I am really stuck for this one.

I am looking to create a script that displays a list of options under some headers. When you click on one of the options (simple text) they would copy into a text box (each on a new row) which could then be copied to clipboard.

I have found something my work is using, but I cannot seem to work out the scripting properly and was hoping that it would be possible to create something using Javascript.

I have been hunting online for this for around an hour now and I can not find what I am looking for.

Im still trying to figure out what you really want but I have no clue - I had a look at your code and found this CLASS="B10" you are referencing to this CLASS="B10" but where is this CLASS. Do you get what I mean?