<a href="javascript:" class="btn btn-default btn-xs btn-email-copy" data-id="8057492" data-type="receipt_email" data-hash="76af85cb574e88b8c802f56044a06b9f" title="" data-original-title="test">test</a>
I click on the button to copy email in clipboard. Now I'm trying to catch in a variable the value of the clipboard.
var test = document.getElementByName('8057492');
but console says the value is null ...
I tried to get access to the object a.btn.btn-default.btn-xs.btn-email-copy
but I don't know what to do then?