Home  >  Article  >  Web Front-end  >  Detailed explanation of how ComboBox uses URL to remotely call data

Detailed explanation of how ComboBox uses URL to remotely call data

巴扎黑
巴扎黑Original
2017-08-08 09:57:411761browse

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;
" />

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!

Statement:
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