Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

jQuery EasyUI Form - Creating a ComboTree

jQuery EasyUI Form - Creating a ComboTree

A ComboTree is a ComboBox with a drop-down Tree structure. It can be used as a form field and can be submitted to a remote server.

In this tutorial, we will create a registration form with name, address, and city fields. The city field is a ComboTree field in which the user can drop down the tree panel and select a specific city.

Creating the Form



    
        

Account Information

        
                                                                                                                                                                                                                                                             
Name:
Address:
City:
        
    
    
        Submit         Cancel     

As you can see from the code above, we set a url property for a ComboTree field named 'city'; this field can retrieve Tree data from a remote server. Note that this field has a class named 'easyui-combotree', so we do not need to write any js code - the ComboTree field will be rendered automatically.

Download the jQuery EasyUI example

jeasyui-form-form2.zip