0

<button><pre>
lt;/pre></button> How to do Onclick Copy

<button><pre>

lt;/pre></button> Now I want have to copy the text which is written in "pre" tag as soon as someone clicks on the button. Can anyone solve this problem ?. {Only use JavaScript or jQuery}

2nd Jul 2020, 10:28 AM
PRADEEP KHILLARE
PRADEEP KHILLARE - avatar
1 ответ
+ 5
Basic code that I came up with, modify it depending on your requirement. https://code.sololearn.com/WAyCB9H3Gv5R/?ref=app
2nd Jul 2020, 12:15 PM
Raj Chhatrala
Raj Chhatrala - avatar