Hi
I am using the following copy to clipboard function.
It allows to copy 1 text area and copy to clipboard.
However i have multiple div’s that show/hide by clicking a radio button.
I want to be able to “copy to clipboard” ALL the text that displays in any divs that are visible(div’s become visible on the page once radio button is selected).
[CODE]
<SCRIPT LANGUAGE=”JavaScript”>
function ClipBoard()
{
holdtext.innerText = copytext.innerText;
Copied = holdtext.createTextRange();
Copied.execCommand(“Copy”);
}
</script>
<div class=”row” id=”div-1a-N” style=”display:none”><span ID=”copytext”>Internet issue</span></div>
<div class=”row” id=”div-2adsla-N” style=”display:none”><span ID=”copytext”>User offline</span></div>
<div class=”row” id=”div-3adsla-N” style=”display:none”><span ID=”copytext”>Account active</span></div>
<TEXTAREA ID=”holdtext” STYLE=”display:none;”></TEXTAREA>
<BUTTON onClick=”ClipBoard();”>Copy to Clipboard</BUTTON>