<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--function radio1_onclick() {
if (radio1.checked )
{
text1.readOnly = false;
text2.readOnly = true;
}else
{
text1.readOnly = false;
text2.readOnly = false;
}
}function radio2_onclick() {
if (radio2.checked )
{
text2.readOnly = false;
text1.readOnly = true;
}else
{
text1.readOnly = false;
text2.readOnly = false;
}
}//-->
</SCRIPT>
</HEAD>
<BODY>
<table>
<tr>
<td><INPUT id=radio1 type=radio name=ra LANGUAGE=javascript onclick="return radio1_onclick()"></td><td><INPUT id=text1 name=text1 readonly ></td>
</tr>
<tr>
<td><INPUT id=radio2 type=radio name=ra LANGUAGE=javascript onclick="return radio2_onclick()"></td><td><INPUT id=text2 name=text2 readonly></td>
</tr>
</table>
</BODY>
</HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--function radio1_onclick() {
if (radio1.checked )
{
text1.readOnly = false;
text2.readOnly = true;
}else
{
text1.readOnly = false;
text2.readOnly = false;
}
}function radio2_onclick() {
if (radio2.checked )
{
text2.readOnly = false;
text1.readOnly = true;
}else
{
text1.readOnly = false;
text2.readOnly = false;
}
}//-->
</SCRIPT>
</HEAD>
<BODY>
<table>
<tr>
<td><INPUT id=radio1 type=radio name=ra LANGUAGE=javascript onclick="return radio1_onclick()"></td><td><INPUT id=text1 name=text1 readonly ></td>
</tr>
<tr>
<td><INPUT id=radio2 type=radio name=ra LANGUAGE=javascript onclick="return radio2_onclick()"></td><td><INPUT id=text2 name=text2 readonly></td>
</tr>
</table>
</BODY>
</HTML>
解决方案 »
- 为什么我请求ajax跨域不成功??????????????
- options 为空或不是对象(高手速度来结贴)
- 请问 textarea 中的换行字符是什么
- jquery1.3.2+ui1.7.2的dialog问题
- js能写出这样的特效吗
- 为什么windows.open()部署到服务器不能打开
- 在一静态页面,把很多个复选框的值用JS给一个文本框然后提交写入数据库
- 请问能否点击按钮或下拉框后显示服务器端的字体及调色板?(急!)
- ExtJs 4.2 关于将Ext对象写入到新打开的浏览器窗口中,在线急等!!
- clipboard.js 怎么实现复制图片 而不是复制图片url
- 这是什么原因引起的??????疑惑??
- 请教cancelBubble是干什么用的???
<input id=zz2 disabled>
<input type= "radio" name= "r1" onclick= "this.form.file1.disabled = this.checked;" language= "javascript">disable <input type= "radio" name= "r1" onclick= "this.form.file1.disabled = !this.checked;" language="javascript">enable
<input type="text" name= "file1">
</form>