阅读背景:

javascript控制jsp网页中只读文本框背景色——出错啦,求救!

来源:互联网 

jsp网页代码:

<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="https://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<script src="js/txtreadonlycolor.js" type="text/javascript"></script>


<title>文本框背景色变灰Demo</title>
</head>

<body onload="checkreadonly()">
<form name="input" action="" method="get">

<div>
<input name="testtrue" type="text"  readonly="true" />

<input name="testnone1" type="text" />

<input name="testnone2" type="text" />
</div>
</form>
</body>
</html><%@ page contentType="text/html; cha



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: