wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes jsp,javascript,servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "jsp,javascript,servlet" Watch "jsp,javascript,servlet" New topic
Author

jsp,javascript,servlet

ganesh gupta
Greenhorn

Joined: Mar 04, 2008
Posts: 1
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
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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.

onclick="document.formName.elementName1.style.display='inline';document.formName.elementName2.style.display='none';"

This way you do not have to worry about Ajax calls and such to fetch the data from the server.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp,javascript,servlet
 
Similar Threads
List Of Radio buttons with other option
h:messages problem
Problem to display corresponding List box when radio button selected
Auto Populate Combo Box upon Radio Selection
transfer data from text box to multiple select list box.