I want copy text field value to clipboard using jquery.
<html>
<head>
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
</head>
<body>
<input type="text" value="my text value"></input>
<input type="button" value="Copy to clipboard"></input>
</body>
</html>
I saw some examples in other threads as:
(1) How to copy text to the client's clipboard using jQuery? - https://stackoverflow.com/
(2) copy text to clipboard with jquery or javascript - http://stackoverflow.com
They use zeroclipboard.js, but I do not know how to implement copy only the value of a text box with a button