copy data from html on click code example Example: jquery copy to clipboard document.execCommand("copy");