EasyUI Forum
December 01, 2025, 07:00:08 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Loading data from form into three dependency combobox  (Read 6842 times)
patana
Jr. Member
**
Posts: 50


View Profile
« 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?
 
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!