[thelist] changing button.value for IE/Mac

Dave Miller davemiller at prispop.com
Sun Dec 1 17:02:01 CST 2002


I've got a radio button changing a submit button's value from 'sign up' to
'remove', which works in most browsers (i don't care if it doesn't work in
some browsers -- just that it doesn't produce ugly results.)  However, IE5.2
for the Mac seems to have problems; it changes the background color of the
button's div to white.  Any idea?  Here's the code I'm using:

<form action="mailinglist.asp" method="post">
<div>
<p class="leftside">
<label for="sendemail">email address:</label><br />
<input class="bar" type="text" maxlength="30" size="6" name="sendemail"
id="sendemail" value="your address" onFocus="if(this.value == 'your
address') { this.value = ''; } else { this.select(); }" accesskey="m" /><br>

<input type="radio" onclick="joinbutton.value='sign up';" id="join"
name="join" value="subscribe" checked="checked" /><label
for="join">subscribe</label><br />

<input type="radio" onclick="joinbutton.value='remove';" id="disjoin"
name="join" value="unsubscribe" /><label
for="disjoin">unsubscribe</label><br />

<input type="submit" value="sign up" id="joinbutton" />
</p>
</div>
</form>




More information about the thelist mailing list