点击全选输入框内容

<input type="text" onclick="oCopy(this)" value="你好,内容!">
<script>
    function oCopy(obj){
        obj.select();    // 选中输入框中的内容
    }
</script>

 

posted @ 2016-01-24 18:26  wifix  阅读(918)  评论(0编辑  收藏  举报