Home >Web Front-end >JS Tutorial >Detailed explanation of how ComboBox uses URL to remotely call data
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:'store_myList', valueField:'uuid', textField:'name' " />
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!