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

Dropdown Value selection using java script

15 Views

Dear All,

I have 2 dropdown boxes.

1. Wage_Type(User can select)

-WageID

-WageText

2.Wage_edit (Hidden)

-WageID

-EditFlag

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,

Mukesh