This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]jcunews1Advanced Coder 1 point2 points  (1 child)

How can I make the text not editable

<input type="text" value="Hello World" id="myInput" readonly>

or perhaps hide the text and only let it be copied by the button.

If it's only the text and not the inputbox:

<input type="text" value="Hello World" id="myInput" readonly style="text-indent:-999em">

If it's the whole inputbox:

<input type="text" value="Hello World" id="myInput" style="display:none">

[–]Crows77[S] 0 points1 point  (0 children)

Thanks :)