Home Web Front-end JS Tutorial Things to note about the default value of combobox in EasyUI_jquery

Things to note about the default value of combobox in EasyUI_jquery

May 16, 2016 pm 04:11 PM
easyui default value

When modifying data, you need to load the data first.

When loading combobox data, the data passed from the background should be int type.

html code

Copy code The code is as follows:


Department:
         
           

           


javascript code

Copy code The code is as follows:

$('#belongs').combobox({
​ ​ url: 'opr/book/combobox.do',
          valueField: 'id',
         textField: 'name',
          width : '140',
Height: '29',
         editable : false,
panelHeight : 'auto',
onLoadSuccess : function(data) {
                var b1 = $('#belongsvalue').val(); //b1 is int type data
                $('#belongs').combobox('setValue', b1);
}
});

The above is the entire content of this article, I hope it can be helpful to everyone.

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Is easyui a jquery plug-in? Is easyui a jquery plug-in? Jul 05, 2022 pm 06:08 PM

easyui is a jquery plug-in. easyui is a front-end UI interface plug-in based on JQuery, which is used to help web developers more easily create feature-rich and beautiful UI interfaces. easyui is a framework that perfectly supports HTML5 web pages, which can help developers save the time and scale of web development.

Is the bigger the default value of Win10 allocation unit size, the better? Is the bigger the default value of Win10 allocation unit size, the better? Jun 29, 2023 pm 04:42 PM

Is the larger the default value of Win10 allocation unit size, the better? Now more and more people are using the Win10 system, but there are always various problems when we use it. For example, some friends encounter the problem of allocation unit size when formatting a USB flash drive. So what's going on? Let's follow the editor to see how to make the default value of the allocation unit size larger. Methods to use larger default allocation unit size Generally speaking, the larger the allocation unit size, the better and the faster it will run, but it will also waste space, so it is generally better to choose a moderate one, and the default value is also appropriate. When formatting a USB flash drive, the choice of allocation unit size is not the bigger the better, but an appropriate intermediate value. Generally speaking, the default value is fine.

Use PHP and jQuery EasyUI to develop an efficient backend management system Use PHP and jQuery EasyUI to develop an efficient backend management system Jun 27, 2023 pm 01:21 PM

With the development of the Internet, more and more companies need to develop an efficient back-end management system to manage and process data to provide strong support for the development of the company. In this context, PHP and jQueryEasyUI have become very popular development technologies. PHP is a widely used server-side scripting language. It has the advantages of open source, cross-platform, easy to learn and use, and has a rich function library and a large number of open source frameworks, which can quickly build an efficient backend management system. And jQueryEasyU

Explore jQuery EasyUI web design inspiration and tips Explore jQuery EasyUI web design inspiration and tips Feb 25, 2024 pm 09:12 PM

jQueryEasyUI is a user interface plug-in framework based on jQuery. It provides a wealth of easy-to-use interface components and plug-ins, which can help developers quickly build beautiful and powerful web pages. In this article, we will explore the web design inspiration and techniques brought by using jQuery EasyUI, and give specific code examples. 1. Responsive layout Responsive design is an important trend in modern web design, which allows web pages to present the best user experience on different devices. jQuery

Use jQuery EasyUI to create modern web interfaces Use jQuery EasyUI to create modern web interfaces Feb 23, 2024 pm 10:18 PM

Use jQueryEasyUI to create a modern web interface. With the rapid development of today's Internet, web design is becoming more and more important. In order to attract users, improve user experience, and demonstrate professionalism, it is crucial to design a modern web interface. In order to achieve this goal, we can use jQueryEasyUI, an excellent front-end framework, to simplify the development process. The following will introduce how to use jQueryEasyUI to create a modern web interface and provide some specific code examples. what is

What is the default value of local variables in Java? What is the default value of local variables in Java? Aug 20, 2023 pm 09:41 PM

Local variables can be declared within methods, codeblocks, constructors, etc. in Java. Local variables are created when program control enters a method, code block, constructor, etc., and are destroyed when program control leaves a method, code block, constructor, etc. In Java, local variables have no default value. This means that they can be declared and assigned before the variable is used for the first time, otherwise, the compiler will throw an error. Example publicclassLocalVariableTest{ publicvoidprint(){ &am

Why are default values ​​shared between objects in Python? Why are default values ​​shared between objects in Python? Aug 20, 2023 pm 07:33 PM

The concept of default values ​​in Python is based on using mutable or immutable objects. In programming practice, it is best not to use mutable objects as default values. Instead, use None as the default value to avoid problems. Immutable objects, such as numbers, strings, tuples, and None, do not change. For mutable objects such as dictionaries, lists, and class instances, changes can cause confusion. Let's look at an example of a dictionary in a function and what's wrong with it and how to fix it. Problem We have a function. In this function, we have a dictionary as parameter and set the default value. The first time this function is called, mydict contains only one item. On the second call, mydict contains two items because when foo() starts executing, my

Recommended jQuery EasyUI plug-in that is easy to operate Recommended jQuery EasyUI plug-in that is easy to operate Feb 25, 2024 pm 09:33 PM

jQuery is a popular JavaScript framework that is widely used in web development, and jQueryEasyUI is a set of simple and easy-to-use UI plug-in libraries developed based on jQuery. This article will introduce several excellent jQueryEasyUI plug-ins and give specific code examples to help you get started using these plug-ins faster. 1.DataGrid (data table) DataGrid is a plug-in for displaying data in tables, supporting data loading, sorting, filtering, etc.

See all articles