EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: patana on August 23, 2017, 07:54:32 PM



Title: Loading data from form into three dependency combobox
Post by: patana on August 23, 2017, 07:54:32 PM
I have a three level dependency combobox such as cmb_province_id, cmb_district_id, and cmb_commune_id.
I use :
onChange event in cmb_province_id [
Code:
$("#cmb_district_id").combobox("reload", url+"get_data.php?type=dis&id="+newValue).combobox("clear"); 
]
onChange event in cmb_district_id [
Code:
$("#cmb_commune_id").combobox("reload", url+"get_data.php?type=com&id="+newValue).combobox("clear"); 
]

In Addnew data mode, it works fine. But in Edit data mode it is not.
When it load data from form into combobox, the three combobox not load the correct value.
The last combobox, cmb_commune_id, not shown data.

I used to apply this code in the old version, 1.4.1, and it works fine.
Does anyone has this problem?