87,992
社区成员
发帖
与我相关
我的任务
分享
function oldUserBuyClick(){
var customer = $(this);
customer.select()
}
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题</title>
</head>
<body>
<input type="text" name="" value="" id="input" onclick="oldUserBuyClick()">
<script type="text/javascript" language="javascript" >
function oldUserBuyClick(){
var customer = document.getElementById('input');
customer.select()
}
</script>
</body>
</html>
<input type="text" name="" value="123" id="input" onfocus="this.select()" />