I have a javascript problem. I wish someone can solve it.
I have a combobox where it displays string values.
I have an unique id for each of the string values which is an integer.
I am using form1.object.op tions[form1.object.se lectedIndex].id*1; so I
can get the correct id for the selected string. This works fine for
me.
But in another combo I need to have the id as a 'String' not as an
integer,
for this the above javascript doesnt work. It returns an 'NaN'
Please tell me how can I get the string id for the selected value.
Any help is greatly appreciated
Thanks
Shiran.
I have a combobox where it displays string values.
I have an unique id for each of the string values which is an integer.
I am using form1.object.op tions[form1.object.se lectedIndex].id*1; so I
can get the correct id for the selected string. This works fine for
me.
But in another combo I need to have the id as a 'String' not as an
integer,
for this the above javascript doesnt work. It returns an 'NaN'
Please tell me how can I get the string id for the selected value.
Any help is greatly appreciated
Thanks
Shiran.
Comment