Skip to content

nelsenpro/js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

Textarea : Copy

Setting up

CDN

<script src="https://cdn.jsdelivr.net/gh/nelsenpro/js/cp.js" integrity="sha384-5NUcFWIZxsmAnfe20XG9j0++0ofbsLjDmPX3RhRqUqVwrxRGrfidkDCQYd7AOcxY" crossorigin="anonymous"></script>

HTML

<script src="https://cdn.jsdelivr.net/gh/nelsenpro/js/cp.js" integrity="sha384-5NUcFWIZxsmAnfe20XG9j0++0ofbsLjDmPX3RhRqUqVwrxRGrfidkDCQYd7AOcxY" crossorigin="anonymous"></script>

<textarea name="textarea" id="textarea" rows="8" cols="40" wrap="off" readonly="true"></textarea>
<hr />
<button type="submit" onclick="copy();">Copy</button>
<textarea name="textarea1" id="textarea" rows="8" cols="40" wrap="off" readonly="true"></textarea>
<hr />
<button type="submit" onclick="copy1();">Copy</button>
<textarea name="textarea2" id="textarea" rows="8" cols="40" wrap="off" readonly="true"></textarea>
<hr />
<button type="submit" onclick="copy2();">Copy</button>
<textarea name="textarea90" id="textarea" rows="8" cols="40" wrap="off" readonly="true"></textarea>
<hr />
<button type="submit" onclick="copy90();">Copy</button>
<textarea name="textarea99" id="textarea" rows="8" cols="40" wrap="off" readonly="true"></textarea>
<hr />
<button type="submit" onclick="copy99();">Copy</button>

Sukses...

Textarea id = 100 & onclick="copy100();"

id = 1 sampai 100 & onclick="copy1 sampai 100();"

by Bnelsofc GNU GPL 3.0