/    Sign up×
Community /Pin to ProfileBookmark

i have a problem. i have a signup form and in that form is daytime phone and evening phone. and for the evening phone field i have checkbox’s asking if the number is the same. and if then below that i have a text field set to diasabled. well when it ask’s if the number is the same and they click no i want to activate that text field so they can enter in there telephone number. here’s my code:

<td valign=”top”><div align=”left”>
<p>Evening Phone: Same? </p>
</div></td>
<td><form name=”form8″ method=”post” action=””>
Yes
<input type=”checkbox” name=”evening_yesbox” value=”checkbox” >

</form>
<form name=”form9″ method=”post” action=””>
No
<input name=”evening_nobox” type=”checkbox” value=”checkbox”>
</form> <form name=”form10″ method=”post” action=””>
<input name=”eveningphone” type=”text” disabled=”disabled”>
</form>

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@crh3675May 27.2005 — First off, you only need one FORM declaration that encapsulates your INPUT fields:

try this:

<form name="form8" method="post" action="">

Yes <input type="radio" name="phonesame" value="yes" onclick="document.forms.form8.eveningphone.disabled=this.checked ? true : false" checked="checked">

No <input type="radio" name="phonesame" value="no" onclick="document.forms.form8.eveningphone.disabled=this.checked ? false : true">

<input name="eveningphone" type="text" disabled="disabled">

</form>
×

Success!

Help @mbsmith spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...