String j = listCatolog.get(f).toString();
amit punekar wrote:Hello,
String j = listCatolog.get(f).toString();
It seems that you are not incrementing "f" anywhere so you are getting same value from the ArrayList.
You can use jQuery as well to do this which is more cleaner and nicer approach to handle such scenarios.
Regards,
amit
Eric Pascarello wrote:What does that JavaScript look like when you view the page source?
Eric
Nguyen Phuoc wrote:Hi Eric .I will show all code
Eric Pascarello wrote:
Nguyen Phuoc wrote:Hi Eric .I will show all code
I do not care about the serverside code, I care about what is generated to the page that the JavaScript actually sees. View page source in the browser, grab that code.
Eric
Eric Pascarello wrote:So that code runs fine.
I am guessing that is not what you want. I am guessing that the select options should be different and be from something on the server.
In that case you can not just use plain old jsp to write the values to the page. You are going to have to learn about Ajax. Look into linked selects or double combos.
Eric