A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Mar 04, 2008
Mar 05, 2008 00:02:00
I have a 2 list box which is filled and I have a radio button,when I click on radio buton,it will take the data from database and display in those list box,previous item in the listbox must be deleted
Joined: Nov 08, 2001
Mar 05, 2008 06:57:00
How about you make the design a little more simple. Have two list boxes on the page. Hide the one with style="display:none". When the radio button is selected, you show it and hide the other.
This way you do not have to worry about Ajax calls and such to fetch the data from the server.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
Auto Populate Combo Box upon Radio Selection
List Of Radio buttons with other option
transfer data from text box to multiple select list box.
Problem to display corresponding List box when radio button selected
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015