/    Sign up×
Community /Pin to ProfileBookmark

Inline java in Html

Hi friends,

Pls help me. Here i have explained my problem.

I have one html form in that form i placed 2 radio button, one is Yes another is No,

If i checked the yes button, bottom of the radio button one new control has to show.

<td colspan=”3″ class=”formtext” valign=”top”><input type=”radio” name=”Headoff” value=”Yes” “/>Yes<input type=”radio” name=”Headoff” value=”No”/>No </td>

IF yes
<input type=’radio’ name=’Branchoff’ value=’Yes’ />Yes<input type=’radio’ name=’Branchoff’ value=’No’/>No

IF No

no need

Pls any one can help me.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@FromU2MEJan 05.2006 — Lets see if I understood it right - if one selects 'Yes' then you want to add two new radio-buttons below the two radio-buttons?
Copy linkTweet thisAlerts:
@KorJan 05.2006 — [code=php]
<input type="radio" name="Headoff" value="Yes" onclick="document.getElementById('mybut').style.display='block'">Yes<input type="radio" name="Headoff" value="No" onclick="document.getElementById('mybut').style.display='none'">No
<div id="mybut" style="display:none">
<input type="radio" name="Branchoff" value="Yes">Yes<input type="radio" name="Branchoff" value="No">No
</div>
[/code]
×

Success!

Help @elavarasu 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 6.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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...