Skip to Content
Former Member
Jan 27, 2010 at 06:25 AM

Dropdown Value selection using java script


Dear All,

I have 2 dropdown boxes.

1. Wage_Type(User can select)



2.Wage_edit (Hidden)



I have to calculate the wage type is editable or not. So when ever the user selects the Wage_type dropdown the change event calculate the corresponding lead selection should be done in the Wage_Edit dropdown(hidden) and I have to read the EditFlag.

Edit_Flag have the values like "X" or "".

I have written the following code in the Wage_Type DDL change event(Java Script).

var new_wage = this.boundItem(xfa.event.newText);
WAGE_EDIT.rawValue = new_wage;
var we = WAGE_EDIT.getDisplayItem(WAGE_EDIT.selectedIndex);

But the value is still return the Key value(WageID) and not the EditFlag.

Please help to get the corresponding text.

Kind Regards,