list box

Results 1 to 3 of 3

Thread: list box

  1. #1
    krishna Guest

    Default list box

    hi<BR> can anyone tell me how to do this:<BR> <BR> when i select a 100th element from a list box, the corresponding 100th value must automatically appear in other list box from a database. example: if i select the name of a person in the 100th place then in other list boxes automatically his age, weight etc., should show up. and correspondingly i should get for any other position. i&#039;ve tried with onchange event mehod but, its not working.<BR>thanks.<BR><BR> my email:

  2. #2
    Join Date
    Dec 1969

    Default RE: list box

    remember the onchange event goes in &#060;select&#062; tag notin option tag. Just set value of option tag to some numeric id then create javascript 2d array with corresponding info in correct index to array. In onchange use option value to index into array to get values to pass to text boxes etc. if you need some code to do this check

  3. #3
    Join Date
    Dec 1969

    Default Do you *mean* ... other "LIST boxes"???<BR><BR>Why would you put his age, weight, etc., into a &#060;SELECT&#062; list??? Wouldn&#039;t you just display it in ordinary text fields???<BR><BR>Anyway, do you want to do this all in the browser or do you want to make a "round trip" to the server and do it with ASP code?<BR><BR>If all in the browser, look at and search for "dynamic lists".<BR><BR>If all in ASP, I have a demo at ... look for the "categories" demo. It only shows two lists, but the idea is the same.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts