My actaul scenario is to read some values from a notepad file and display them in the dropdown list. [ Am working in jsp]
I am able to get the values and store it in array but am not able to populate in the drop down list dynamically.
Here am pasting the sample code. The values which i stored in the array are not beling populated in dropdown list.
NOTE: I cant use any onchange functions or onclick functions.
Thanks for your help,
Ramesh.
This message was edited 1 time. Last update was at by Ramesh Sunkara
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 14857
posted
0
You code is running before the element is on the page. Your error message in the JavaScript console should tell you that in a cryptic way. Either run it via window.onload or put the code after the element on the page.
Eric
This message was edited 1 time. Last update was at by Eric Pascarello