.......
<input type="text" name="t" disabled>
<input type="text" name="t" readonly>对所有form都可以,当然包括了单选、多选、按钮
<input type="text" name="t" disabled>
<input type="text" name="t" readonly>对所有form都可以,当然包括了单选、多选、按钮
<script language="JavaScript">
<!--
function lockfile()
{
document.all('test').readOnly=true;
alert("now lock up the text");
}function openfile()
{
document.all('test').readOnly=false;
alert("now open the text");
}
-->
</script><form action="test.jsp" method="post" name="form1">
<input name="test" type="text" class="text" id="test" size="50">
<input name="file_yes_no" type="radio" value="yes" onclick="openfile()">yes
<input name="file_yes_no" type="radio" value="no" onclick="lockfile()"> no
<input type="submit" name="Submit" value="ok">
</form>OK.结贴吧!!嘿嘿!!
parent.a.document.form1.button1.disabled=true;a是框架的名字希望有用