Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Making a text field appear when clicking a radio button in a form

843840Oct 11 2007 — edited Oct 15 2007
hi
i need to display a text box when we select a particular radio button in a radio button group in a form
my code is :

<input Type="radio" name="group" value="B.tech">B.tech</input>
<input type="radio" name="group" value="M.tech" >M.tech</input>
<input Type="radio" name="group" value="Phd" >Phd </input>
<input Type="radio" name="group" value="Others"> Others</input>

these are my group of radio buttons

by default firt radio button will be checked

if the user Check last radio button "Others" then a "TEXT field" should be displayed

can any body help me out in these
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 12 2007
Added on Oct 11 2007
4 comments
387 views