답변 4개
<input type="text" id="myInput" value="<?php echo $url; ?>">
대신
<input type="button" id="myInput" value="url 복사 ">
스크립트를
$("#myInput").attribute("value","<?php echo $url; ?>")
$("#myInput").select();
document.execCommand("copy");
$("#myInput").attribute("value","url 복사")
이런식으로 하면 안될까요?
댓글을 작성하려면 로그인이 필요합니다.
댓글을 작성하려면 로그인이 필요합니다.
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
input type="text" 대신에 input type="hidden" 을 사용하시면 되지 않나요?
답변에 대한 댓글 2개
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인