Disable/enable icon.gif
Hi all.
I have this form in the page.htm:
I need:
1) If select name="t_im" value is NULL ( "" ) disable icon_1.gif
2) If select name="t_im" value NOT is NULL ( "" ) enable icon_1.gif
3) If select name="c_fu" value is NULL ( "" ) OR value is "YES" disable icon_2.gif
4) If select name="c_fu" value is "NO" enable icon_2.gif
Can you help me ?
kind regards
viki
Hi all.
I have this form in the page.htm:
Code:
<form action="form.asp" method="post" onsubmit="return(validateForm(this));">
<select size="1" name="t_im" onchange="Form()">
<option value="">Select value</option>
<option value="A">A</option>
<option value="C">C</option>
<option value="Ca">Ca</option>
<option value="Cav">Cav</option>
</select>
<input type="text" name="e_gu" size="10" readonly>
<a href="javascript:Form()">
<img src="icon_1.gif" border="0"></a>
<select size="1" name="c_fu">
<option value="">Select value</option>
<option value="YES">YES</option>
<option value="NO">NO</option>
</select>
<input type="text" name="c_ma" size="10" readonly>
<a href="javascript:Form()">
<img src="icon_2.gif" border="0"></a>
</form>
1) If select name="t_im" value is NULL ( "" ) disable icon_1.gif
2) If select name="t_im" value NOT is NULL ( "" ) enable icon_1.gif
3) If select name="c_fu" value is NULL ( "" ) OR value is "YES" disable icon_2.gif
4) If select name="c_fu" value is "NO" enable icon_2.gif
Can you help me ?
kind regards
viki
Comment