Teşşekkürler Hocam Bu Şekilde Her Alan için Bu Kodu Yazmam Gerek ben bunun Yerine Fonsyona Gonderılen Değer Ne İse Onu Kopyalasın İstiyorum o şekilde yapılamaz mı ?
Barbaros93 adlı üyeden alıntı: mesajı görüntüle
function cloneText(){
 var copyText = document.getElementById("myInput");
  copyText.select();
  copyText.setSelectionRange(0, 99999)
  document.execCommand("copy");
  alert("Copied the text: " + copyText.value);
}
<input type="text" id="myInput"/>
<input type="button" onclick="cloneText"/>