日期:2014-05-17 浏览次数:20932 次
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>test.html</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script>
function enableEdit(id){
$("input[id!='"+id+"']:text").attr("disabled",true);
}
</script>
</head>
<body>
<input type="text" id="t1" onkeyup="enableEdit(t1)"/>
<input type="text" id="t2" onkeyup="enableEdit(t2)"/>
<input type="text" id="t3" onkeyup="enableEdit(t3)"/>
</body>
</html>