Combobox in jQuery + easyui implements drop-down box Effects

Source: Internet
Author: User

Combobox in jQuery + easyui implements drop-down box Effects

This article mainly introduces several methods for implementing the special effects of the drop-down box in combobox in jQuery + easyui. It is very simple and practical. For more information, see

 

 

1. The first method is shown in the Input box:

 

The Code is as follows:


<Input id = "cc" class = "easyui-combobox" name = "name" data-options = "valueField: 'value', textField: 'text', data: [{'value': '1', 'text': 'java'}, {'value': '2', 'text ': 'C # '}] "/>

 

2. The second usage is displayed in the list:

 

The Code is as follows:


<Th data-options = "field: 'lb', editor: {type: 'combobox', options: {data: [{'value': '1 ', 'text': 'java'}, {'value': '2', 'text': 'C # '}], valueField: 'value', textField: 'text' }}"> Category </th>

 

3. Another method of writing the second statement:

 

The Code is as follows:


<Th field = "level" editor = "{
Type: 'combobox ',
Options :{
Data :[
{'Value': '1', 'text': 'java '},
{'Value': '2', 'text': 'C #'}
],
ValueField: 'id ',
TextField: 'text'} ">
Category </th>

 

All of the above three methods can implement the special drop-down box effects of jQuery. easyui. You are free to choose from.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.