aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes converting text box to drop down on radio button event Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "converting text box to drop down on radio button event" Watch "converting text box to drop down on radio button event" New topic
Author

converting text box to drop down on radio button event

Raghu Kalyan
Greenhorn

Joined: Jan 18, 2007
Posts: 2
i Have 2 radio buttons say RD1 and RD2and one text box.
By default RD1 button is selected and text box is also default. But now when i click the RD2 radio button the text box should be replaced with drop down without the page refresh. Is it possible using javacsript?
If there is any solution please let me know.
Anilkumar Ravinuthala
Greenhorn

Joined: Jan 17, 2007
Posts: 17
In the onclick you can write your own function, and have a flag.Let it be altered by your radiobutton click. Based on that flag you can show textbox or Dropdown.
is this idea helpful to you. let me know.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6


Eric
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61437
    
  67

"Kalyan A R",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious. Initials for a last name are not accepatable.

Thanks!
bear
JavaRanch Sheriff
[ January 19, 2007: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: converting text box to drop down on radio button event