Hi there.
I have this form with three fields:
I have to disable the field input type="text" name="ore" AND the link <a href="javascrip t:ApriPoup(500, 500,'popup.asp' );"> when the select "Stato" value "Assente".
Help please, thanks regards
Viki1967
I have this form with three fields:
Code:
<HTML>
<HEAD>
<script language="javascript">
<!--
function ApriPopup(larg,alte,url)
{
var w = screen.width;
var h = screen.height;
var x = Math.round(w / 2) - Math.round(larg / 2);
var y = Math.round(h / 2) - Math.round(alte / 2);
window.open(url,'','width='+larg+',height='+alte+',top='+y+',left='+x+'');
}
//-->
</script>
</HEAD>
<BODY>
<form method="POST" action="test.asp">
<select size="1" name="Stato">
<option>Seleziona</option>
<option value="Assente">Assente</option>
<option value="Presente">Presente</option>
</select>
<select size="1" name="Stato_g">
<option>Seleziona</option>
<option value="Ferie">Ferie</option>
<option value="Malattia">Malattia</option>
<option value="In sede">In sede</option>
<option value="Fuori sede">Fuori sede</option>
</select>
<input type="text" name="ore" size="20">
<a href="javascript:ApriPoup(500,500,'popup.asp');">
<img border="0" src="apripopup.gif" width="12" height="12"></a>
</form>
</BODY>
</HTML>
Help please, thanks regards
Viki1967
Comment