I'm doing copy text when click on the button to copy the text from the text field. But not working on safari in Iphone This is my function
function myFunction() {
var copyText = document.getElementById("myInput");
copyText.select();
document.execCommand("copy");
}