i have an idea which is not exactly the way you are looking for
ie:- not by retriving values into a two dimensional array and send to javascript.
but check this out.
you must be populating the combo box in
java using the database right??
well considering thats the case for each entry in the combo box
you must be creating
or something like that.
well wy dont you assign the rating to the name attribute of the option tag as
assuming the rating for engineer is 1.
you will have to do this when you build the option tag in java.
this way every information is there in the combo box ie:- the occupation as well as the rating. no need for the array.
then in javascript you can very well access this value by
"this[this.selectedIndex].name" and the method i had pointed out to you earlier.
use both the steps properly and i know you will succeed.
i havent tried this out but i am preety sure it will work out.
try it out and let me know.