Original geschrieben von holyfreak
ist das nicht der Formname FormName ??
PHP-Code:
<form action="test" name="FormName" method="post">
<form action="test" name="FormName" method="post">
<form action="test" name="FormName" method="post">
<form action="FormName" method="post">
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
<title>Testscript</title>
<script type="text/javascript">
<!--
function Update() {
document.FormName.test2.readOnly = false;
}
//-->
</head>
<body>
<form action="test" name="FormName" method="post">
<input type="text" name="test2" value="Testfeld deaktiviert" readonly><br>
<input type="radio" name="test" value="3" onClick="Update();"><b>Radiobutton</b>
</form>
</body>
</html>
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
<title>Testscript</title>
<!--
function Update() {
document.FormName.test2.readOnly = false;
}
//-->
</head>
<body>
<form action="test" method="post">
<input type="text" name="test2" value="Testfeld deaktiviert" readonly><br>
<input type="radio" name="test" value="3" onClick="Update();"><b>Radiobutton</b>
</form>
</body>
</html>
onClick="Update();"
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
<title>Testscript</title>
<!--
function Update() {
document.FormName.test.readOnly = false;
}
//-->
</head>
<body>
<form action="test" method="post">
<input type="radio" name="test" value="3" onClick="return Update();"><b>Radiobutton</b><br>
<input type="text" name="p_pic_banner" value="Testfeld deaktiviert" readonly>
</form>
</body>
</html>
function Update() {
document.FormName.p_typ.readOnly = false;
}
<input type="radio" name="p_typ" value="2" onClick="return Update();">
<input style="FONT-SIZE: 11px; width: 300px;" type="text" name="p_pic_banner" value="'.($GLOBALS['p_pic_banner']).'" readonly>
Einen Kommentar schreiben: