copy api response to clipboard on button click jquery code example Example: jquery copy to clipboard document.execCommand("copy");