|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Radio Click
hi all,
Now i have a problem to be solved. I have populated radio button and a dropdown with values from the database. Now what i want is, When i am clicking a particular radio button, all its corresponding values needs to be populated into the dropdown box from the database. I need both these radio buttons and drop down menus on the same page and this clicking should get affected only by clickiing the radio button option and not by any submit button. Example: In a page there will be radio button options and one drop down menu. Radio button options- 1. India 2. United States When the radio button for India is clicked, all its respective states will be populated into the dropdown menu. Please sombody guide in doing this. Any help will be appreciated Waiting for the reply Thanking you ri |
|
#2
|
||||
|
||||
|
You need to use Javascript, load all the needed variables onto the page and have javascript select the correct array.
|
|
#3
|
||||
|
||||
|
I believe I've seen this accomplished with an auto-post on the radio button. Then have your Server Side language decide what to do with the data.
Not necessarily the recommended option, but a solution nonetheless... |
|
#4
|
||||
|
||||
|
Of course, a similar option could be to check other Threads...
http://forums.devarticles.com/showthread.php?t=10330 |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > Radio Click |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|