1个回答
展开全部
<html>
<head>
<script language="javascript" src="jquery-1.4.2.min.js"></script>
<script language="javascript">
function delvalue(){
document.getElementById('1').value="";
}
</script>
</head>
<body>
<input type="text" id="1">
<input type="button" value="确定" onclick="delvalue()">
</body>
</html>
<head>
<script language="javascript" src="jquery-1.4.2.min.js"></script>
<script language="javascript">
function delvalue(){
document.getElementById('1').value="";
}
</script>
</head>
<body>
<input type="text" id="1">
<input type="button" value="确定" onclick="delvalue()">
</body>
</html>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询