phish20002003
Programmer
I am fairly new to javasctipt. I'm trying to disable a button if a second button is named let's say Activate. This is what I have so far.
<HTML>
<HEAD>
</HEAD>
<SCRIPT LANGUAGE="JavaScript">
if(document.form.button1.value =="Activate")
{document.form.Button2.disabled=true;}
</SCRIPT>
</HEAD>
<BODY TEXT="000000" BGCOLOR="FFFFFF">
<form>
<td align="center" valign="top" colspan="1"><input type="button" name="button1" value="Activate"></td>
<td align="center" valign="top" colspan="1"><input type="button" name="button2" value="test"></td>
</form>
</BODY>
</HTML>
-Phish
"Why do you need to think? Can't we just sit and go budumbudumbudum with our lips for a bit?" - Mostly Harmless
<HTML>
<HEAD>
</HEAD>
<SCRIPT LANGUAGE="JavaScript">
if(document.form.button1.value =="Activate")
{document.form.Button2.disabled=true;}
</SCRIPT>
</HEAD>
<BODY TEXT="000000" BGCOLOR="FFFFFF">
<form>
<td align="center" valign="top" colspan="1"><input type="button" name="button1" value="Activate"></td>
<td align="center" valign="top" colspan="1"><input type="button" name="button2" value="test"></td>
</form>
</BODY>
</HTML>
-Phish
"Why do you need to think? Can't we just sit and go budumbudumbudum with our lips for a bit?" - Mostly Harmless