HTML - make input field selectable but not changeable
Like the youtube embed text fields. How do you ma开发者_Go百科ke a text field selectable but not changeable?
<input type="text" value="Some Text" readonly="readonly" />
Another way to achieve this is just to make a div appear like a text field.
<div style="border: inset 2px #ccc;background:#fff;padding:2px;">
http://example.com/?id=sdfsdfsdfsdfsdf
</div>
精彩评论