ClipboardJS A modern approach to copy text to clipboard No Flash. No frameworks. Just 3kb gzipped

Copy from input

Use a id on input and use this id on button's attribute to copy from input e.g data-clipboard-target="#copyfrominput"

Cut from textarea

Use data-clipboard-action="cut" with button to get the cut functionality by default it use only copy. Cut functionality only works on input and textarea.

Copy from textarea
Copy from text

Mussum ipsum cacilds, vidis litro abertis. Consetis adipiscings elitis. Pra lá , depois divoltis porris, paradis. Paisis, filhis, espiritis santis. Mé faiz elementum girarzis, nisi eros vermeio, in elementis mé pra quem é amistosis quis leo. Manduma pindureta quium dia nois paga.