<!DOCTYPE html>
<html lang="en">
<mate charset="utf-8">
<head>
<title>禁用文本框</title>
</head>
<body>
<script>
window.function () {
var time=true;
my$("btn").onclick=function () {
my$("txt").disabled=true;
}
}
</script>
<input type="button" value="显示" id="btn">
<input type="text" value="文本框" id="txt" >
</body>
</html>
禁用文本框 disabled="true";
最新推荐文章于 2023-02-20 23:54:10 发布