Home > Web Front-end > JS Tutorial > body text

Detailed explanation of how ComboBox uses URL to remotely call data

巴扎黑
Release: 2017-08-08 09:57:41
Original
1808 people have browsed it

This article mainly introduces the method of ComboBox (drop-down list box) loading and calling remote data through url. Friends in need can refer to

ComboBox (drop-down list box)
ComboBox (drop-down list box) )Commonly used attributes:
valueField: The basic data value name is bound to the drop-down list box. — Submit value
textField: The name of the underlying data field is bound to the drop-down list box. —Display value
url: Load remote list data through URL.
mode: Defines how to read list data when the text changes. When set to 'remote', the dropdown list box will load data from the server. When set to "remote" mode, user input will be sent to the HTTP request parameter named 'q' to the server to retrieve new data.

Method:

clear: Clear the value of the drop-down list box.
select: Select the specified item.
setValue: Set the value of the drop-down list box.
setValues: Set the drop-down list box value array.


<input name="storeuuid" class="easyui-combobox"
data-options="
  url:&#39;store_myList&#39;,
  valueField:&#39;uuid&#39;,
  textField:&#39;name&#39;
" />
Copy after login

The above is the detailed content of Detailed explanation of how ComboBox uses URL to remotely call data. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!