I have got a combo Box which has the lists of ‘status’ and when i select a option and save it, it works perfectly as it keeps the value. But when i go back to the form again and tab out that field as i do not have to change the value and move to next textfield and save it and go back to the form it looses the value.
Can anyone tell me how i could solve this problem
this is my cose
[code]
zStatus =new dhtmlXCombo(getElementByIdCompatible(sLocation+“drpSTATUS_list”),sLocation+“drpSTATUS_list”,500);
zStatus.setOptionWidth(500);
zStatus.enableFilteringMode(true);
zStatus.loadXML(“combodriver.jsp?table=tblstatus&val=status”);
zStatus.attachEvent(“onBlur”, updateStatus);
zStatus.setComboValue(getElementByIdCompatible(“form1:txtSTATUS”).value);
[/code]
[code]
function updateStatus() {
getElementByIdCompatible("form1:txtSTATUS").value=zStatus.getSelectedValue();
};
[/code]
Thanks
Uthay